<!--
 * @Descripttion: 新写三方经办人、负责人发送逻辑、批前公示、竣工验收经办人、负责人、终审、备案
 * @version:
 * @Author: wjh
 * @Date: 2024-01-05 13:43:03
 * @LastEditors: wjh
 * @LastEditTime: 2024-02-04 15:13:25
-->

<template>
  <div class="sendTree">
    <van-action-sheet v-model="isshow" title="选择接收人员" @close="hadleClosed" style="height: 52%">
      <div class="content">
        <van-tree-select :items="items" :active-id.sync="activeIds" :main-active-index.sync="activeIndex" @click-item="handlerselect" />
      </div>
      <div style="position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%)">
        <van-button style="width: 90vw" type="info" @click="hadleConfirm">确定</van-button>
      </div>
    </van-action-sheet>
  </div>
</template>

<script>
import { QuerySignCallback, FileServerProxy, dTalkWorkNoticeNetNfBiz, farmerHouseProjectPush } from '@/utils/api'
import { GJDBFunction2 } from '@/utils/queryData'
import { GSA_Add, GSA_Search } from '@/common/commonApi'
import { houseCraftsmanprojectSave } from '@/utils/api'
import { houseCraftsmanprojectSave1 } from '@/utils/GJSave'
export default {
  name: 'sendTree',
  data() {
    return {
      items: [],
      activeId: 1,
      activeIds: [],
      ids: 0,
      activeIndex: 0,
      personData: [],
      IsequitPerson: ''
    }
  },
  props: {
    isshow: false,
    handleSelectClose: Function,
    //当前行数
    rowData: Object,
    //保存的数据
    JFData: Object
  },
  watch: {
    rowData: {
      handler(newdata, olddata) {
        //三方经办人
        // if (newdata.NODE_GUID == '{5821E9EB-44B5-49AC-A659-6DF98B410B38}' || newdata.NODE_GUID == '{0439EC7A-785D-4B5B-ADD4-11E2D320376E}'
        //   || newdata.NODE_GUID == '{417EFF61-5FA8-44D6-A624-5B3D0F39B56C}') {
        //   if (newdata.IsequitPerson == '是') {
        //     //发给批前公示
        //     this.getPerson('三元合一')
        //   } else if (newdata.IsequitPerson == '否') {
        //     //发给对应的负责人
        //     this.getPerson('负责人')
        //   }
        // }
        //判断如果是三方经办人环节  并且三个经办人和三个负责人是同一个人的情况
        //判断如果是三方经办人环节  并且三个经办人和三个负责人是不是同一个人的情况
      },
      immediate: true, // 默认是false，watch在首次绑定amount时，是否立即执行handler函数
      deep: true
    }
  },
  mounted() {},
  created() {
    //镇街资格审核经办人
    if (this.rowData.NODE_GUID == '{417EFF61-5FA8-44D6-A624-5B3D0F39B56C}') {
      this.getPerson('镇街资格审核经办人')
    }
    //镇街规划审核经办人
    if (this.rowData.NODE_GUID == '{0439EC7A-785D-4B5B-ADD4-11E2D320376E}') {
      this.getPerson('镇街规划审核经办人')
    }
    //镇街农房审核经办人
    if (this.rowData.NODE_GUID == '{5821E9EB-44B5-49AC-A659-6DF98B410B38}') {
      this.getPerson('镇街农房审核经办人')
    }
    //镇街农房审核负责人
    if (this.rowData.NODE_GUID == '{777D7530-351F-4BAA-8A28-9153C53A4BBE}') {
      this.getPerson('镇街农房审核负责人')
    }
    //镇街规划审核负责人
    if (this.rowData.NODE_GUID == '{97E3145A-01B9-4CEE-AA4E-21CA9F0FF671}') {
      this.getPerson('镇街规划审核负责人')
    }
    //镇街资格审核负责人
    if (this.rowData.NODE_GUID == '{299D1B2C-4EDA-4963-AC66-E91B3403A49E}') {
      this.getPerson('镇街资格审核负责人')
    }
    //批前公示
    if (this.rowData.NODE_GUID == '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}') {
      this.getPerson('批前公示')
    }
    //乡镇人民政府审核
    if (this.rowData.NODE_GUID == '{9766D96E-8B85-481F-B514-C0B21CF4DC3A}') {
      this.getPerson('乡镇人民政府审核')
    }
    //竣工验收镇街资格审核经办人
    if (this.rowData.NODE_GUID == '{5CC13346-8C53-4A37-989D-932716248754}') {
      this.getPersonYS('竣工验收镇街资格审核经办人')
    }
    //竣工验收镇街规划审核经办人
    if (this.rowData.NODE_GUID == '{74864380-8590-4F8B-BD75-942E08F04D81}') {
      this.getPersonYS('竣工验收镇街规划审核经办人')
    }
    //竣工验收镇街农房审核经办人
    if (this.rowData.NODE_GUID == '{38E4E7DB-963D-40F1-B1E1-FF8793AD23AD}') {
      this.getPersonYS('竣工验收镇街农房审核经办人')
    }
    //竣工验收镇街资格审核负责人
    if (this.rowData.NODE_GUID == '{EB7D42FE-320C-4A0A-9C98-3E9373898826}') {
      this.getPersonYS('竣工验收镇街资格审核负责人')
    }
    //竣工验收镇街规划审核负责人
    if (this.rowData.NODE_GUID == '{003E7696-65E6-432B-97A7-C95711D1D0E0}') {
      this.getPersonYS('竣工验收镇街规划审核负责人')
    }
    //竣工验收镇街农房审核负责人
    if (this.rowData.NODE_GUID == '{0C243209-79FA-48BB-B027-4933B5FC31A2}') {
      this.getPersonYS('竣工验收镇街农房审核负责人')
    }
    //竣工验收镇街人民政府终审
    if (this.rowData.NODE_GUID == '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}') {
      this.getPersonYS('竣工验收镇街人民政府终审')
    }
    //住房和城乡建设主管部门备案
    if (this.rowData.NODE_GUID == '{C1C592F3-63AE-4206-8382-A7D695ED2DF6}') {
      this.getPersonYS('住房和城乡建设主管部门备案')
    }
    //结束{DDCED543-65DD-4D6B-BEFC-B07DBDDA6C76}
  },
  methods: {
    hadleClosed() {
      this.handleSelectClose()
    },
    async hadleConfirm() {
      let me = this

      let newSingleData = JSON.parse(window.localStorage.getItem('singleData')),
        newRoles
      if (newSingleData && newSingleData.bizUserInfo) {
        newRoles = newSingleData.bizUserInfo.userInfo
      }
      //都要走这个接口
      let parms = {
        taskId: me.rowData.TASK_ID,
        direction: 0,
        wfGuid: me.rowData.WF_GUID,
        wfBoxGuid: '',
        sendNodes: JSON.stringify(me.personData),
        actionText: '同意',
        taskName: '浙里办'
      }
      let params10 = {
        accessCode: 'c52bcf7cf3fb42bb9fbcd9b91e97d411',
        cityCode: window.localStorage.getItem('citycode') ? window.localStorage.getItem('citycode') : '441300000000',
        params: parms
      }
      const res = await QuerySignCallback(params10)
      if (eval('(' + res.data.data + ')').Success == true) {
        //镇街资格审核（经办人）
        let set = new Set()
        let i_type = 0,
          i_node_guid
        me.personData.forEach((item) => {
          set.add(item.wfNodeGuid)
        })
        i_node_guid = [...set].toString()
        if (
          me.rowData.NODE_GUID == '{417EFF61-5FA8-44D6-A624-5B3D0F39B56C}' ||
          me.rowData.NODE_GUID == '{0439EC7A-785D-4B5B-ADD4-11E2D320376E}' ||
          me.rowData.NODE_GUID == '{5821E9EB-44B5-49AC-A659-6DF98B410B38}' ||
          me.rowData.NODE_GUID == '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}'
        ) {
          if (
            !me.IsEmpty(newRoles.roles[38]) &&
            !me.IsEmpty(newRoles.roles[39]) &&
            !me.IsEmpty(newRoles.roles[40]) &&
            !me.IsEmpty(newRoles.roles[52]) &&
            !me.IsEmpty(newRoles.roles[53]) &&
            !me.IsEmpty(newRoles.roles[54])
          ) {
            //当前登陆人同时为 38: '镇街资格经办人', 39: '镇街规划经办人', 40: '镇街农房经办人',52: '镇街农房负责人', 53: '镇街规划负责人', 54: '镇街资格负责人'
            i_type = 1
          }
          if (me.rowData.NODE_GUID == '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}') {
            let newData = {
              PKID: me.rowData.PKID,
              ISDELETE: 5,
              eca_RowState: 'modified'
            }
            GSA_Add('06424a16-746c-4650-ae97-a774402de7cd', true, newData)
          }
        }
        //竣工验收经办人
        if (
          me.rowData.NODE_GUID == '{5CC13346-8C53-4A37-989D-932716248754}' ||
          me.rowData.NODE_GUID == '{74864380-8590-4F8B-BD75-942E08F04D81}' ||
          me.rowData.NODE_GUID == '{38E4E7DB-963D-40F1-B1E1-FF8793AD23AD}' ||
          me.rowData.NODE_GUID == '{EB7D42FE-320C-4A0A-9C98-3E9373898826}' ||
          me.rowData.NODE_GUID == '{003E7696-65E6-432B-97A7-C95711D1D0E0}' ||
          me.rowData.NODE_GUID == '{0C243209-79FA-48BB-B027-4933B5FC31A2}'
        ) {
          if (
            !me.IsEmpty(newRoles.roles[77]) &&
            !me.IsEmpty(newRoles.roles[78]) &&
            !me.IsEmpty(newRoles.roles[79]) &&
            !me.IsEmpty(newRoles.roles[80]) &&
            !me.IsEmpty(newRoles.roles[81]) &&
            !me.IsEmpty(newRoles.roles[82])
          ) {
            //当前登陆人同时为 77: '镇街资格经办人', 79: '镇街规划经办人',80: '镇街规划负责人', 78: '镇街资格负责人'
            i_type = 3
          }
        }
        Promise.all([
          me.searchSendDataBySix([
            {
              I_ROW_GUID: me.rowData.ROW_GUID,
              I_NODE_GUID_NOW: me.rowData.NODE_GUID,
              I_NODE_GUID_NEXT: i_node_guid,
              I_TYPE: i_type
            }
          ])
        ]).then((item) => {
          //浙政钉消息提供
          me.personData.forEach((items) => {
            Promise.all([
              me.searchPQGS([
                {
                  field: 'PROC_GUID',
                  value: me.rowData.PROC_GUID
                },
                {
                  field: 'NODE_GUID',
                  value: items.wfNodeGuid //'{342312E7-E3BC-426A-8568-E5E4EDD94A1A}'
                },
                {
                  field: 'TASK_STATUS',
                  value: '16',
                  link: 'AND',
                  operator: 'in'
                }
              ])
            ]).then((proc) => {
              if (proc.Data.length < 1) {
                GJDBFunction2('get_loginname_by_id', [{ I_ID: items.wfNodeGuid }]).then((item2) => {
                  var p = {}
                  p.userNames = item2.Data[0].LOGINNAME //暂时测试只写成我自己的id
                  p.msg = '{"msgtype":"text","text":{"content":"您在[粤政易]中有一个待办件需要处理，请及时办理。"}}'
                  // me.dTalkWorkNoticeNetNfBizs(p);
                })
              }
            })
          })
        })
        var sn = me.personData.find(function (item) {
          return item.wfNodeGuid == '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}'
        })
        //推送图审
        if (!me.IsEmpty(sn)) {
          Promise.all([
            me.searchGetTS([
              {
                field: 'PROC_GUID',
                value: me.rowData.PROC_GUID
              },
              {
                field: 'NODE_GUID',
                value: sn.wfNodeGuid,
                link: 'AND',
                operator: '<>'
              },
              {
                field: 'NODE_GUID',
                value: me.rowData.NODE_GUID,
                link: 'AND',
                operator: '<>'
              },
              {
                field: 'TASK_STATUS',
                value: '5',
                link: 'AND',
                operator: '<>'
              }
            ])
          ]).then((proc) => {
            if (proc[0].Data.length < 1) {
              Promise.all([me.farmerHouseProjectPush(proc.Data[0])]).then((item) => {})
            }
          })
        }
        me.$toast.success('发送成功!')
        // 竣工验收乡镇人民政府发送结束调用
        if (this.rowData.NODE_GUID == '{9766D96E-8B85-481F-B514-C0B21CF4DC3A}') {
          const res22 = await GJDBFunction2('get_gjcjxmsj', [{ get_gjcjxmsj: this.rowData.ROW_GUID }])
          let params = {
            ID: res22[0].ID,
            commencementtime: res22[0].COMMENCEMENTTIME,
            completiontime: res22[0].COMPLETIONTIME,
            houseapplicant: res22[0].HOUSEAPPLICANT,
            construcitonaddress: res22[0].CONSTRUCITONADDRESS,
            Planningpermit: res22[0].PLANNINGPERMIT,
            buildstorey: res22[0].BUILDSTOREY,
            buildarea: res22[0].BUILDAREA,
            craftsmancode: res22[0].CRAFTSMANCODE,
            city: res22[0].CITY,
            county: res22[0].COUNTY,
            town: res22[0].TOWN,
            village: res22[0].VILLAGE,
            phone: res22[0].PHONE,
            housebuilding: res22[0].HOUSEBUILDING,
            rowGuid: res22[0].ROWGUID,
            applytime: res22[0].APPLYTIME,
            years: res22[0].YEARS,
            contractid: res22[0].CONTRACTID,
            isWhole: res22[0].ISWHOLE,
            isCompleted: res22[0].ISCOMPLETED,
            projectAmount: res22[0].PROJECTAMOUNT,
            isOnline: res22[0].ISONLINE
          }
          const res = await houseCraftsmanprojectSave(params)
        }
        me.$router.push({
          path: '/MyTodoList'
        })
      } else {
        this.$toast.fail(eval('(' + res.data.data + ')').msg)
      }
    },
    //浙政钉消息提醒
    dTalkWorkNoticeNetNfBizs(params) {
      let data = {
        bizMsgId: '9689ec95-1203-ab3e-7e56-b04d886ca435',
        appKey: '6738b790-69e8-11ec-a673-6805cab640a0',
        userNames: params.userNames,
        msg: params.msg
      }
      return new Promise((resolve, reject) => {
        dTalkWorkNoticeNetNfBiz(data).then((item) => {
          resolve(item)
        })
      })
    },
    //六元合一
    searchSendDataBySix(dtParam) {
      return new Promise((resolve, reject) => {
        GJDBFunction2('oneIsAll', dtParam).then((item) => {
          resolve(item)
        })
      })
    },
    //查询是否已有发送过批前公示的任务
    searchPQGS(searchObject) {
      return new Promise((resolve, reject) => {
        GSA_Search('9359eacf-26af-49ac-91ed-802c40f587e2', searchObject).then((item) => {
          resolve(item)
        })
      })
    },
    //获取图审数据
    searchGetTS() {
      let searchObject = [{ field: 'HOUSE_APPLYV2.ROW_GUID', value: this.rowData.ROW_GUID }]
      return new Promise((resolve, reject) => {
        GSA_Search('086eecd7-8521-4e04-9a8b-7c62225fef43', searchObject).then((item) => {
          if (item.Data.length > 0) {
            farmerHouseProjectPush(item.Data).then((i) => {
              resolve(i)
            })
          }
        })
      })
    },
    //通过id获取人员信息
    searchsendDataByuserId(dtParam) {
      return new Promise((resolve, reject) => {
        GJDBFunction2('USERNAME', dtParam).then((item) => {
          resolve(item)
        })
      })
    },
    //发送获取人员
    SearchSendDataPuplic(dtParam) {
      return new Promise((resolve, reject) => {
        GJDBFunction2('up_townaudit', dtParam).then((item) => {
          resolve(item)
        })
      })
    },

    //图审接口
    farmerHouseProjectPush(data) {
      return new Promise((resolve, reject) => {
        farmerHouseProjectPush(data).then((item) => {
          resolve(item)
        })
      })
    },

    getRecipient(nodes, types, length, nid) {
      let me = this
      nodes[length - 1] = nid
      //组织对应的数据
      dtParam = [{ I_USERID: me.rowData.VILLAGE, I_TYPE: types[length - 1] }]
      Promise.all([me.SearchSendDataPuplic(dtParam)]).then((item2) => {
        if (item2[0] && item2[0].length > 0) {
          item2[0].forEach((data) => {
            nid = nid + 1
            me.items[length - 1].children.push({
              text: data.ST_NAME,
              id: nid,
              USERID: data.ST_ID,
              USERNAME: data.ST_NAME,
              wfNodeGuid: nodes[length - 1].WFNODEGUID,
              wfNodeName: nodes[length - 1].WFNODENAME,
              TEXT: data.ST_NAME,
              PTNID: nodes[length - 1].TNID,
              TNID: nid,
              ISUSER: 1,
              SINGLEASSIGN: false,
              wfNodeType: nodes[length - 1].WFNODETYPE
            })
          })
          if (length == 1) {
            me.getRecipient(nodes, types, length - 1, nid)
          }
        } else {
          me.$toast.fail('提交不成功，请联系镇街管理员核查 <' + nodes[length].Text + '> 是否已配置好案卷接受人员！')
        }
      })
    },
    //
    HouseNodeUser(nodeInfo) {
      let nid = 1
      let USERID = nodeInfo.USERID
      let TYPE = nodeInfo.TYPE
      let me = this
      me.items.push({
        text: nodeInfo.WFNODENAME,
        WFNODEGUID: nodeInfo.WFNODEGUID,
        WFNODENAME: nodeInfo.WFNODENAME, //节点名称
        dot: false,
        TNID: nid,
        PTNID: '-1',
        // 导航节点额外类名
        className: 'my-class',
        // 该导航下所有的可选项
        children: []
      })
      Promise.all([me.SearchSendDataPuplic([{ I_USERID: USERID, I_TYPE: TYPE }])]).then((item2) => {
        if (item2[0] && item2[0].length > 0) {
          item2[0].forEach((data) => {
            nid = nid + 1
            me.items[0].children.push({
              text: data.ST_NAME,
              id: nid,
              USERID: data.ST_ID,
              USERNAME: data.ST_NAME,
              wfNodeGuid: nodeInfo.WFNODEGUID,
              wfNodeName: nodeInfo.WFNODENAME,
              TEXT: data.ST_NAME,
              PTNID: 1,
              TNID: nid,
              ISUSER: 1,
              SINGLEASSIGN: false,
              wfNodeType: 2
            })
          })
        } else {
          me.$toast.fail('提交不成功，请联系镇街管理员核查' + ' <"' + nodeInfo.WFNODENAME + '"> ' + '是否已配置好案卷接受人员！')
        }
      })
    },
    //批前公示获取数据
    searchXZFByPQGS(searchObject) {
      debugger
      return new Promise((resolve, reject) => {
        GSA_Search('d0979119-5a29-4422-8cde-8ecde3d900dc', searchObject).then((item) => {
          resolve(item)
        })
      })
    },
    getJGYSData(searchObject) {
      return new Promise((resolve, reject) => {
        GSA_Search('bcc68c9d-454b-4eb0-94f8-e008471f49a2', searchObject).then((item) => {
          resolve(item)
        })
      })
    },
    //dataGuid公共查询
    getDataGuidByPublic(dataGuid, searchObject) {
      return new Promise((resolve, reject) => {
        GSA_Search(dataGuid, searchObject).then((item) => {
          resolve(item)
        })
      })
    },
    //获取人员组合
    async getPerson(data) {
      let me = this
      let newResData = []
      let searchObject = []
      let dtParam = []
      let newRoles
      let newSingleData = JSON.parse(window.localStorage.getItem('singleData'))
      if (newSingleData && newSingleData.bizUserInfo) {
        newRoles = newSingleData.bizUserInfo.userInfo
      }

      if (data == '镇街资格审核经办人') {
        debugger
        //六个权限都有发给批前公示
        if (
          newRoles &&
          !me.IsEmpty(newRoles.roles[38]) &&
          !me.IsEmpty(newRoles.roles[39]) &&
          !me.IsEmpty(newRoles.roles[40]) &&
          !me.IsEmpty(newRoles.roles[52]) &&
          !me.IsEmpty(newRoles.roles[53]) &&
          !me.IsEmpty(newRoles.roles[54])
        ) {
          searchObject = [
            {
              field: 'PROC_GUID',
              value: me.rowData.PROC_GUID
            },
            {
              field: 'NODE_GUID',
              value: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}'
            },
            {
              field: 'TASK_STATUS',
              value: '5,16',
              link: 'AND',
              operator: 'in'
            }
          ]

          Promise.all([me.searchPQGS(searchObject)]).then((item) => {
            if (item[0].Data.length > 0) {
              let str = item[0].Data[0].TASK_RECIPIENTLIST.split(',')
              dtParam = [{ I_USERID: str[1] }]
              Promise.all([me.searchsendDataByuserId(dtParam)]).then((item1) => {
                me.items.push({
                  text: '批前公示',
                  WFNODENAME: '批前公示', //节点名称
                  WFNODEGUID: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}',
                  dot: false,
                  TNID: 1,
                  PTNID: '-1',
                  // 导航节点额外类名
                  className: 'my-class',
                  // 该导航下所有的可选项
                  children: []
                })
                me.items[0].children.push({
                  text: item1[0][0].USERNAME,
                  USERID: item1[0][0].USERID,
                  USERNAME: item1[0][0].USERNAME,
                  wfNodeGuid: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}',
                  wfNodeName: '批前公示',
                  TEXT: item1[0][0].USERNAME,
                  PTNID: 1,
                  TNID: 1,
                  ISUSER: 1,
                  SINGLEASSIGN: false,
                  wfNodeType: 5 ///2. 普通节点，5， 汇聚节点
                })
              })
            } else {
              dtParam = [{ I_USERID: this.rowData.VILLAGE, I_TYPE: 25 }]
              Promise.all([me.SearchSendDataPuplic(dtParam)]).then((item2) => {
                if (item2[0] && item2[0].length > 0) {
                  me.items.push({
                    text: '批前公示',
                    WFNODENAME: '批前公示', //节点名称
                    WFNODEGUID: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}',
                    dot: false,
                    TNID: 1,
                    PTNID: '-1',
                    // 导航节点额外类名
                    className: 'my-class',
                    // 该导航下所有的可选项
                    children: []
                  })
                  item2[0].forEach((data) => {
                    me.ids++
                    me.items[0].children.push({
                      text: data.ST_NAME,
                      id: me.ids,
                      USERID: data.ST_ID,
                      USERNAME: data.ST_NAME,
                      wfNodeGuid: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}',
                      wfNodeName: '批前公示',
                      TEXT: data.ST_NAME,
                      PTNID: 1,
                      TNID: me.ids + 1,
                      ISUSER: 1,
                      SINGLEASSIGN: false,
                      wfNodeType: 2
                    })
                  })
                } else {
                  me.$toast.fail('提交不成功，请联系镇街管理员核查' + ' <批前公示> ' + '是否已配置好案卷接受人员！')
                }
              })
            }
          })
        }
        //三个经办人分别发给对应负责人
        else if (newRoles && !me.IsEmpty(newRoles.roles[38]) && !me.IsEmpty(newRoles.roles[39]) && !me.IsEmpty(newRoles.roles[40])) {
          let nodes = []
          let types = []
          let newLeftData = {}
          me.items.push({
            text: '镇街资格审核负责人',
            WFNODEGUID: '{299D1B2C-4EDA-4963-AC66-E91B3403A49E}',
            WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
            TEXT: '镇街资格审核负责人',
            WFNODENAME: '镇街资格审核负责人',
            dot: false,
            TNID: 1,
            PTNID: '-1',
            // 导航节点额外类名
            className: 'my-class',
            // 该导航下所有的可选项
            children: []
          })
          nodes.push(me.items)
          types.push(5)
          searchObject = [
            {
              field: 'PROC_GUID',
              value: me.rowData.PROC_GUID
            },
            {
              field: 'NODE_GUID',
              value: '{0439EC7A-785D-4B5B-ADD4-11E2D320376E}'
            },
            {
              field: 'TASK_STATUS',
              value: '5',
              link: 'AND',
              operator: 'in'
            }
          ]
          Promise.all([me.searchPQGS(searchObject)]).then((item) => {
            if (item[0].Data.length < 1) {
              me.items.push({
                text: '镇街规划审核负责人',
                WFNODEGUID: '{97E3145A-01B9-4CEE-AA4E-21CA9F0FF671}',
                WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                TEXT: '镇街规划审核负责人',
                WFNODENAME: '镇街规划审核负责人',
                dot: false,
                TNID: 1,
                PTNID: '-1',
                // 导航节点额外类名
                className: 'my-class',
                // 该导航下所有的可选项
                children: []
              })
              nodes.push(me.items)
              types.push(6)
            }

            Promise.all([
              me.searchPQGS([
                {
                  field: 'PROC_GUID',
                  value: me.rowData.PROC_GUID
                },
                {
                  field: 'NODE_GUID',
                  value: '{5821E9EB-44B5-49AC-A659-6DF98B410B38}'
                },
                {
                  field: 'TASK_STATUS',
                  value: '5',
                  link: 'AND',
                  operator: 'in'
                }
              ])
            ]).then((item1) => {
              if (item1[0].Data.length < 1) {
                me.items.push({
                  text: '镇街农房审核负责人',
                  WFNODEGUID: '{777D7530-351F-4BAA-8A28-9153C53A4BBE}',
                  WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                  TEXT: '镇街农房审核负责人',
                  WFNODENAME: '镇街农房审核负责人',
                  dot: false,
                  TNID: 1,
                  PTNID: '-1',
                  // 导航节点额外类名
                  className: 'my-class',
                  // 该导航下所有的可选项
                  children: []
                })
                nodes.push(me.items)
                types.push(7)
              }
              me.getRecipient(nodes, types, nodes.length, 1)
            })
          })
        }
        //同一条线上的经办人和负责人就发送给对应的流程连线的环节
        else if (newRoles && !me.IsEmpty(newRoles.roles[38]) && !me.IsEmpty(newRoles.roles[54])) {
          Promise.all([
            me.searchPQGS([
              {
                field: 'PROC_GUID',
                value: me.rowData.PROC_GUID
              },
              {
                field: 'NODE_GUID',
                value: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}'
              },
              {
                field: 'TASK_STATUS',
                value: '5,16',
                link: 'AND',
                operator: 'in'
              }
            ])
          ]).then((item) => {
            if (item[0].Data.length > 0) {
              var str = item[0].Data[0].TASK_RECIPIENTLIST.split(',')
              Promise.all([me.searchsendDataByuserId([{ I_USERID: str[1] }])]).then((item1) => {
                me.items.push({
                  text: '批前公示',
                  WFNODEGUID: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}',
                  dot: false,
                  TNID: 1,
                  PTNID: '-1',
                  // 导航节点额外类名
                  className: 'my-class',
                  // 该导航下所有的可选项
                  children: []
                })
                me.items[0].children.push({
                  text: item1[0][0].USERNAME,
                  USERID: item1[0][0].USERID,
                  USERNAME: item1[0][0].USERNAME,
                  wfNodeGuid: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}',
                  wfNodeName: '批前公示',
                  TEXT: item1[0][0].USERNAME,
                  PTNID: 1,
                  TNID: 1,
                  ISUSER: 1,
                  SINGLEASSIGN: false,
                  wfNodeType: 5 ///2. 普通节点，5， 汇聚节点
                })
              })
            } else {
              dtParam = [{ I_USERID: this.rowData.VILLAGE, I_TYPE: 25 }]
              Promise.all([me.SearchSendDataPuplic(dtParam)]).then((item2) => {
                if (item2[0] && item2[0].length > 0) {
                  item2[0].forEach((data) => {
                    me.items.push({
                      text: '批前公示',
                      WFNODEGUID: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}',
                      dot: false,
                      TNID: 1,
                      PTNID: '-1',
                      // 导航节点额外类名
                      className: 'my-class',
                      // 该导航下所有的可选项
                      children: []
                    })
                    me.ids++
                    me.items[0].children.push({
                      text: data.ST_NAME,
                      id: me.ids,
                      USERID: data.ST_ID,
                      USERNAME: data.ST_NAME,
                      wfNodeGuid: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}',
                      wfNodeName: '批前公示',
                      TEXT: data.ST_NAME,
                      PTNID: 1,
                      TNID: me.ids + 1,
                      ISUSER: 1,
                      SINGLEASSIGN: false,
                      wfNodeType: 2
                    })
                  })
                } else {
                  me.$toast.fail('提交不成功，请联系镇街管理员核查' + ' <批前公示> ' + '是否已配置好案卷接受人员！')
                }
              })
            }
          })
        }
        //镇街资格审核负责人
        else {
          var nodeInfo = {}
          nodeInfo.USERID = me.rowData.VILLAGE //存储过程参数
          nodeInfo.TYPE = 5 //存储过程参数
          nodeInfo.WFNODEGUID = '{299D1B2C-4EDA-4963-AC66-E91B3403A49E}' //节点guid
          nodeInfo.WFNODENAME = '镇街资格审核负责人' //节点名称
          me.HouseNodeUser(nodeInfo)
        }
      }
      if (data == '镇街规划审核经办人') {
        debugger
        var I_ZJCITY = me.rowData.VILLAGE
        //六个权限都有发给批前公示
        if (
          !me.IsEmpty(newRoles.roles[38]) &&
          !me.IsEmpty(newRoles.roles[39]) &&
          !me.IsEmpty(newRoles.roles[40]) &&
          !me.IsEmpty(newRoles.roles[52]) &&
          !me.IsEmpty(newRoles.roles[53]) &&
          !me.IsEmpty(newRoles.roles[54])
        ) {
          //当前登陆人同时为 38: '镇街资格经办人', 39: '镇街规划经办人', 40: '镇街农房经办人',52: '镇街农房负责人', 53: '镇街规划负责人', 54: '镇街资格负责人'

          Promise.all([
            me.searchPQGS([
              {
                field: 'PROC_GUID',
                value: me.rowData.PROC_GUID
              },
              {
                field: 'NODE_GUID',
                value: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}'
              },
              {
                field: 'TASK_STATUS',
                value: '5,16',
                link: 'AND',
                operator: 'in'
              }
            ])
          ]).then((item) => {
            if (item[0].Data.length > 0) {
              var str = item[0].Data[0].TASK_RECIPIENTLIST
              var str2 = str.split(',')
              Promise.all([
                me.searchsendDataByuserId([
                  {
                    I_USERID: str2[1]
                  }
                ])
              ]).then((item1) => {
                me.items.push({
                  text: '批前公示',
                  WFNODEGUID: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}',
                  dot: false,
                  TNID: 1,
                  PTNID: '-1',
                  // 导航节点额外类名
                  className: 'my-class',
                  // 该导航下所有的可选项
                  children: []
                })
                me.items[0].children.push({
                  text: item1[0][0].USERNAME,
                  USERID: item1[0][0].USERID,
                  USERNAME: item1[0][0].USERNAME,
                  wfNodeGuid: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}',
                  wfNodeName: '批前公示',
                  TEXT: item1[0].Data[0].USERNAME,
                  PTNID: 1,
                  TNID: 1,
                  ISUSER: 1,
                  SINGLEASSIGN: false,
                  wfNodeType: 5 ///2. 普通节点，5， 汇聚节点
                })
              })
            } else {
              debugger
              var I_ZJCITY = this.rowData.VILLAGE
              var nodeInfo = {}
              nodeInfo.USERID = I_ZJCITY //存储过程参数
              nodeInfo.TYPE = 25 //存储过程参数
              nodeInfo.WFNODEGUID = '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}' //节点guid
              nodeInfo.WFNODENAME = '批前公示' //节点名称
              me.HouseNodeUser(nodeInfo)
            }
          })
        }
        //三个经办人分别发给对应负责人
        else if (!me.IsEmpty(newRoles.roles[38]) && !me.IsEmpty(newRoles.roles[39]) && !me.IsEmpty(newRoles.roles[40])) {
          //当前登陆人同时为 38: '镇街资格经办人', 39: '镇街规划经办人',镇街农房审核（经办人）40
          var nid = 1
          var nodes = []
          var types = []
          //添加节点
          me.items.push({
            text: '镇街规划审核负责人',
            WFNODEGUID: '{97E3145A-01B9-4CEE-AA4E-21CA9F0FF671}',
            WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
            TEXT: '镇街规划审核负责人',
            WFNODENAME: '镇街规划审核负责人',
            dot: false,
            TNID: 1,
            PTNID: '-1',
            // 导航节点额外类名
            className: 'my-class',
            // 该导航下所有的可选项
            children: []
          })
          nodes.push(me.items)
          types.push(6)
          Promise.all([
            me.searchPQGS([
              {
                field: 'PROC_GUID',
                value: me.rowData.PROC_GUID
              },
              {
                field: 'NODE_GUID',
                value: '{417EFF61-5FA8-44D6-A624-5B3D0F39B56C}'
              },
              {
                field: 'TASK_STATUS',
                value: '5',
                link: 'AND',
                operator: 'in'
              }
            ])
          ]).then((item) => {
            if (item[0].Data.length < 1) {
              me.items.push({
                text: '镇街资格审核负责人',
                WFNODEGUID: '{299D1B2C-4EDA-4963-AC66-E91B3403A49E}',
                WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                TEXT: '镇街资格审核负责人',
                WFNODENAME: '镇街资格审核负责人',
                dot: false,
                TNID: 1,
                PTNID: '-1',
                // 导航节点额外类名
                className: 'my-class',
                // 该导航下所有的可选项
                children: []
              })
              nodes.push(me.items)
              types.push(5)
            }
            Promise.all([
              me.searchPQGS([
                {
                  field: 'PROC_GUID',
                  value: me.rowData.PROC_GUID
                },
                {
                  field: 'NODE_GUID',
                  value: '{5821E9EB-44B5-49AC-A659-6DF98B410B38}'
                },
                {
                  field: 'TASK_STATUS',
                  value: '5',
                  link: 'AND',
                  operator: 'in'
                }
              ])
            ]).then((item1) => {
              if (item1[0].Data.length < 1) {
                me.items.push({
                  text: '镇街农房审核负责人',
                  WFNODEGUID: '{777D7530-351F-4BAA-8A28-9153C53A4BBE}',
                  WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                  TEXT: '镇街农房审核负责人',
                  WFNODENAME: '镇街农房审核负责人',
                  dot: false,
                  TNID: 1,
                  PTNID: '-1',
                  // 导航节点额外类名
                  className: 'my-class',
                  // 该导航下所有的可选项
                  children: []
                })
                nodes.push(me.items)
                types.push(7)
              }
              me.getRecipient(nodes, types.node.length, 1)
            })
          })
        }
        //同一条线上的经办人和负责人就发给对应流程连线的环节
        else if (!me.IsEmpty(newRoles.roles[39]) && !me.IsEmpty(newRoles.roles[53])) {
          //当前登陆人同时为 39: '镇街规划经办人', 53: '镇街规划负责人'
          Promise.all([
            me.searchPQGS([
              {
                field: 'PROC_GUID',
                value: me.rowData.PROC_GUID
              },
              {
                field: 'NODE_GUID',
                value: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}'
              },
              {
                field: 'TASK_STATUS',
                value: '5,16',
                link: 'AND',
                operator: 'in'
              }
            ])
          ]).then(function (proc) {
            if (proc[0].Data.length > 0) {
              var str = proc[0].Data[0].TASK_RECIPIENTLIST
              var str2 = str.split(',')
              Promise.all([
                me.searchsendDataByuserId([
                  {
                    I_USERID: str2[1]
                  }
                ])
              ]).then((item1) => {
                me.items.push({
                  text: '批前公示',
                  WFNODEGUID: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}',
                  WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                  TEXT: '批前公示',
                  WFNODENAME: '批前公示',
                  dot: false,
                  TNID: 1,
                  PTNID: '-1',
                  // 导航节点额外类名
                  className: 'my-class',
                  // 该导航下所有的可选项
                  children: []
                })
                me.items[0].children.push({
                  text: item1[0][0].USERNAME,
                  id: nid,
                  USERID: item1[0][0].USERID,
                  USERNAME: item1[0][0].USERNAME,
                  wfNodeGuid: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}',
                  wfNodeName: '批前公示',
                  TEXT: item1[0][0].USERNAME,
                  PTNID: 1,
                  TNID: nid,
                  ISUSER: 1,
                  SINGLEASSIGN: false,
                  wfNodeType: 2
                })
              })
            } else {
              debugger
              var I_ZJCITY = me.rowData.VILLAGE
              var nodeInfo = {}
              nodeInfo.USERID = I_ZJCITY //存储过程参数
              nodeInfo.TYPE = 25 //存储过程参数
              nodeInfo.WFNODEGUID = '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}' //节点guid
              nodeInfo.WFNODENAME = '批前公示' //节点名称
              me.HouseNodeUser(nodeInfo)
            }
          })
        } else {
          var nodeInfo = {}
          nodeInfo.USERID = I_ZJCITY //存储过程参数
          nodeInfo.TYPE = 6 //存储过程参数
          nodeInfo.WFNODEGUID = '{97E3145A-01B9-4CEE-AA4E-21CA9F0FF671}' //节点guid
          nodeInfo.WFNODENAME = '镇街规划审核负责人' //节点名称
          me.HouseNodeUser(nodeInfo)
        }
      }

      if (data == '镇街农房审核经办人') {
        var I_ZJCITY = me.rowData.VILLAGE
        //六个权限都有发给批前公示
        if (
          !me.IsEmpty(newRoles.roles[38]) &&
          !me.IsEmpty(newRoles.roles[39]) &&
          !me.IsEmpty(newRoles.roles[40]) &&
          !me.IsEmpty(newRoles.roles[52]) &&
          !me.IsEmpty(newRoles.roles[53]) &&
          !me.IsEmpty(newRoles.roles[54])
        ) {
          //当前登陆人同时为 38: '镇街资格经办人', 39: '镇街规划经办人', 40: '镇街农房经办人',52: '镇街农房负责人', 53: '镇街规划负责人', 54: '镇街资格负责人'
          // me.items.push({
          //   text: '批前公示',
          //   WFNODEGUID: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}',
          //   dot: false,
          //   TNID: 1,
          //   PTNID: '-1',
          //   // 导航节点额外类名
          //   className: 'my-class',
          //   // 该导航下所有的可选项
          //   children: [
          //   ]
          // })
          Promise.all([
            me.searchPQGS([
              {
                field: 'PROC_GUID',
                value: me.rowData.PROC_GUID
              },
              {
                field: 'NODE_GUID',
                value: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}'
              },
              {
                field: 'TASK_STATUS',
                value: '5,16',
                link: 'AND',
                operator: 'in'
              }
            ])
          ]).then((item) => {
            if (item[0].Data.length > 0) {
              var str = item[0].Data[0].TASK_RECIPIENTLIST
              var str2 = str.split(',')
              Promise.all([
                me.searchsendDataByuserId([
                  {
                    I_USERID: str2[1]
                  }
                ])
              ]).then((item1) => {
                me.items.push({
                  text: '批前公示',
                  WFNODEGUID: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}',
                  dot: false,
                  TNID: 1,
                  PTNID: '-1',
                  // 导航节点额外类名
                  className: 'my-class',
                  // 该导航下所有的可选项
                  children: []
                })
                me.items[0].children.push({
                  text: item1[0][0].USERNAME,
                  USERID: item1[0][0].USERID,
                  USERNAME: item1[0][0].USERNAME,
                  wfNodeGuid: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}',
                  wfNodeName: '批前公示',
                  TEXT: item1[0][0].USERNAME,
                  PTNID: 1,
                  TNID: 1,
                  ISUSER: 1,
                  SINGLEASSIGN: false,
                  wfNodeType: 5 ///2. 普通节点，5， 汇聚节点
                })
              })
            } else {
              debugger
              var I_ZJCITY = this.rowData.VILLAGE
              var nodeInfo = {}
              nodeInfo.USERID = I_ZJCITY //存储过程参数
              nodeInfo.TYPE = 25 //存储过程参数
              nodeInfo.WFNODEGUID = '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}' //节点guid
              nodeInfo.WFNODENAME = '批前公示' //节点名称
              me.HouseNodeUser(nodeInfo)
            }
          })
        }
        //三个经办人分别发给对应负责人
        else if (!me.IsEmpty(newRoles.roles[38]) && !me.IsEmpty(newRoles.roles[39]) && !me.IsEmpty(newRoles.roles[40])) {
          //当前登陆人同时为 38: '镇街资格经办人', 39: '镇街规划经办人',镇街农房审核（经办人）40
          var nid = 1
          var nodes = []
          var types = []
          //添加节点
          me.items.push({
            text: '镇街农房审核负责人',
            WFNODEGUID: '{777D7530-351F-4BAA-8A28-9153C53A4BBE}',
            WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
            TEXT: '镇街农房审核负责人',
            WFNODENAME: '镇街农房审核负责人',
            dot: false,
            TNID: 1,
            PTNID: '-1',
            // 导航节点额外类名
            className: 'my-class',
            // 该导航下所有的可选项
            children: []
          })
          nodes.push(me.items)
          types.push(7)
          Promise.all([
            me.searchPQGS([
              {
                field: 'PROC_GUID',
                value: me.rowData.PROC_GUID
              },
              {
                field: 'NODE_GUID',
                value: '{417EFF61-5FA8-44D6-A624-5B3D0F39B56C}'
              },
              {
                field: 'TASK_STATUS',
                value: '5',
                link: 'AND',
                operator: 'in'
              }
            ])
          ]).then((item) => {
            if (item[0].Data.length < 1) {
              me.items.push({
                text: '镇街资格审核负责人',
                WFNODEGUID: '{299D1B2C-4EDA-4963-AC66-E91B3403A49E}',
                WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                TEXT: '镇街资格审核负责人',
                WFNODENAME: '镇街资格审核负责人',
                dot: false,
                TNID: 1,
                PTNID: '-1',
                // 导航节点额外类名
                className: 'my-class',
                // 该导航下所有的可选项
                children: []
              })
              nodes.push(me.items)
              types.push(5)
            }
            Promise.all([
              me.searchPQGS([
                {
                  field: 'PROC_GUID',
                  value: me.rowData.PROC_GUID
                },
                {
                  field: 'NODE_GUID',
                  value: '{5821E9EB-44B5-49AC-A659-6DF98B410B38}'
                },
                {
                  field: 'TASK_STATUS',
                  value: '5',
                  link: 'AND',
                  operator: 'in'
                }
              ])
            ]).then((item1) => {
              if (item1[0].Data.length < 1) {
                me.items.push({
                  text: '镇街规划审核负责人',
                  WFNODEGUID: '{97E3145A-01B9-4CEE-AA4E-21CA9F0FF671}',
                  WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                  TEXT: '镇街规划审核负责人',
                  WFNODENAME: '镇街规划审核负责人',
                  dot: false,
                  TNID: 1,
                  PTNID: '-1',
                  // 导航节点额外类名
                  className: 'my-class',
                  // 该导航下所有的可选项
                  children: []
                })
                nodes.push(me.items)
                types.push(6)
              }
              me.getRecipient(nodes, types.node.length, 1)
            })
          })
        }
        //同一条线上的经办人和负责人就发给对应流程连线的环节
        else if (!me.IsEmpty(newRoles.roles[40]) && !me.IsEmpty(newRoles.roles[52])) {
          //当前登陆人同时为 39: '镇街规划经办人', 53: '镇街规划负责人'
          var nid = 1
          Promise.all([
            me.searchPQGS([
              {
                field: 'PROC_GUID',
                value: me.rowData.PROC_GUID
              },
              {
                field: 'NODE_GUID',
                value: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}'
              },
              {
                field: 'TASK_STATUS',
                value: '5,16',
                link: 'AND',
                operator: 'in'
              }
            ])
          ]).then(function (proc) {
            if (proc[0].Data.length > 0) {
              var str = proc[0].Data[0].TASK_RECIPIENTLIST
              var str2 = str.split(',')
              Promise.all([
                me.searchsendDataByuserId([
                  {
                    I_USERID: str2[1]
                  }
                ])
              ]).then((item1) => {
                me.items.push({
                  text: '批前公示',
                  WFNODEGUID: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}',
                  WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                  TEXT: '批前公示',
                  WFNODENAME: '批前公示',
                  dot: false,
                  TNID: 1,
                  PTNID: '-1',
                  // 导航节点额外类名
                  className: 'my-class',
                  // 该导航下所有的可选项
                  children: []
                })
                me.items[0].children.push({
                  text: item1[0][0].USERNAME,
                  id: nid,
                  USERID: item1[0][0].USERID,
                  USERNAME: item1[0][0].USERNAME,
                  wfNodeGuid: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}',
                  wfNodeName: '批前公示',
                  TEXT: item1[0][0].USERNAME,
                  PTNID: 1,
                  TNID: nid,
                  ISUSER: 1,
                  SINGLEASSIGN: false,
                  wfNodeType: 2
                })
              })
            } else {
              debugger
              var I_ZJCITY = me.rowData.VILLAGE
              var nodeInfo = {}
              nodeInfo.USERID = I_ZJCITY //存储过程参数
              nodeInfo.TYPE = 25 //存储过程参数
              nodeInfo.WFNODEGUID = '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}' //节点guid
              nodeInfo.WFNODENAME = '批前公示' //节点名称
              me.HouseNodeUser(nodeInfo)
            }
          })
        } else {
          var nodeInfo = {}
          nodeInfo.USERID = I_ZJCITY //存储过程参数
          nodeInfo.TYPE = 6 //存储过程参数
          nodeInfo.WFNODEGUID = '{97E3145A-01B9-4CEE-AA4E-21CA9F0FF671}' //节点guid
          nodeInfo.WFNODENAME = '镇街农房审核负责人' //节点名称
          me.HouseNodeUser(nodeInfo)
        }
      }
      if (data == '镇街农房审核负责人') {
        Promise.all([
          me.searchPQGS([
            {
              field: 'PROC_GUID',
              value: me.rowData.PROC_GUID
            },
            {
              field: 'NODE_GUID',
              value: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}'
            },
            {
              field: 'TASK_STATUS',
              value: '5,16',
              link: 'AND',
              operator: 'in'
            }
          ])
        ]).then(function (proc) {
          if (proc[0].Data.length > 0) {
            var str = proc[0].Data[0].TASK_RECIPIENTLIST
            var str2 = str.split(',')
            Promise.all([
              me.searchsendDataByuserId([
                {
                  I_USERID: str2[1]
                }
              ])
            ]).then((item1) => {
              me.items.push({
                text: '批前公示',
                WFNODEGUID: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}',
                WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                TEXT: '批前公示',
                WFNODENAME: '批前公示',
                dot: false,
                TNID: 1,
                PTNID: '-1',
                // 导航节点额外类名
                className: 'my-class',
                // 该导航下所有的可选项
                children: []
              })
              me.items[0].children.push({
                text: item1[0][0].USERNAME,
                id: nid,
                USERID: item1[0][0].USERID,
                USERNAME: item1[0][0].USERNAME,
                wfNodeGuid: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}',
                wfNodeName: '批前公示',
                TEXT: item1[0][0].USERNAME,
                PTNID: 1,
                TNID: nid,
                ISUSER: 1,
                SINGLEASSIGN: false,
                wfNodeType: 2
              })
            })
          } else {
            debugger
            var I_ZJCITY = me.rowData.VILLAGE
            var nodeInfo = {}
            nodeInfo.USERID = I_ZJCITY //存储过程参数
            nodeInfo.TYPE = 25 //存储过程参数
            nodeInfo.WFNODEGUID = '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}' //节点guid
            nodeInfo.WFNODENAME = '批前公示' //节点名称
            me.HouseNodeUser(nodeInfo)
          }
        })
      }
      if (data == '镇街规划审核负责人') {
        Promise.all([
          me.searchPQGS([
            {
              field: 'PROC_GUID',
              value: me.rowData.PROC_GUID
            },
            {
              field: 'NODE_GUID',
              value: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}'
            },
            {
              field: 'TASK_STATUS',
              value: '5,16',
              link: 'AND',
              operator: 'in'
            }
          ])
        ]).then(function (proc) {
          if (proc[0].Data.length > 0) {
            var str = proc[0].Data[0].TASK_RECIPIENTLIST
            var str2 = str.split(',')
            Promise.all([
              me.searchsendDataByuserId([
                {
                  I_USERID: str2[1]
                }
              ])
            ]).then((item1) => {
              me.items.push({
                text: '批前公示',
                WFNODEGUID: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}',
                WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                TEXT: '批前公示',
                WFNODENAME: '批前公示',
                dot: false,
                TNID: 1,
                PTNID: '-1',
                // 导航节点额外类名
                className: 'my-class',
                // 该导航下所有的可选项
                children: []
              })
              me.items[0].children.push({
                text: item1[0][0].USERNAME,
                id: nid,
                USERID: item1[0][0].USERID,
                USERNAME: item1[0][0].USERNAME,
                wfNodeGuid: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}',
                wfNodeName: '批前公示',
                TEXT: item1[0][0].USERNAME,
                PTNID: 1,
                TNID: nid,
                ISUSER: 1,
                SINGLEASSIGN: false,
                wfNodeType: 2
              })
            })
          } else {
            debugger
            var I_ZJCITY = me.rowData.VILLAGE
            var nodeInfo = {}
            nodeInfo.USERID = I_ZJCITY //存储过程参数
            nodeInfo.TYPE = 20 //存储过程参数
            nodeInfo.WFNODEGUID = '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}' //节点guid
            nodeInfo.WFNODENAME = '批前公示' //节点名称
            me.HouseNodeUser(nodeInfo)
          }
        })
      }
      if (data == '镇街资格审核负责人') {
        Promise.all([
          me.searchPQGS([
            {
              field: 'PROC_GUID',
              value: me.rowData.PROC_GUID
            },
            {
              field: 'NODE_GUID',
              value: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}'
            },
            {
              field: 'TASK_STATUS',
              value: '5,16',
              link: 'AND',
              operator: 'in'
            }
          ])
        ]).then(function (proc) {
          if (proc[0].Data.length > 0) {
            var str = proc[0].Data[0].TASK_RECIPIENTLIST
            var str2 = str.split(',')
            Promise.all([
              me.searchsendDataByuserId([
                {
                  I_USERID: str2[1]
                }
              ])
            ]).then((item1) => {
              me.items.push({
                text: '批前公示',
                WFNODEGUID: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}',
                WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                TEXT: '批前公示',
                WFNODENAME: '批前公示',
                dot: false,
                TNID: 1,
                PTNID: '-1',
                // 导航节点额外类名
                className: 'my-class',
                // 该导航下所有的可选项
                children: []
              })
              me.items[0].children.push({
                text: item1[0][0].USERNAME,
                id: nid,
                USERID: item1[0][0].USERID,
                USERNAME: item1[0][0].USERNAME,
                wfNodeGuid: '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}',
                wfNodeName: '批前公示',
                TEXT: item1[0][0].USERNAME,
                PTNID: 1,
                TNID: nid,
                ISUSER: 1,
                SINGLEASSIGN: false,
                wfNodeType: 2
              })
            })
          } else {
            debugger
            var I_ZJCITY = me.rowData.VILLAGE
            var nodeInfo = {}
            nodeInfo.USERID = I_ZJCITY //存储过程参数
            nodeInfo.TYPE = 25 //存储过程参数
            nodeInfo.WFNODEGUID = '{342312E7-E3BC-426A-8568-E5E4EDD94A1A}' //节点guid
            nodeInfo.WFNODENAME = '批前公示' //节点名称
            me.HouseNodeUser(nodeInfo)
          }
        })
      }
      if (data == '批前公示') {
        Promise.all([
          me.searchXZFByPQGS([
            {
              field: 'PROC_GUID',
              value: me.rowData.PROC_GUID
            },
            {
              field: 'NODE_GUID',
              value: '{9766D96E-8B85-481F-B514-C0B21CF4DC3A}'
            }
          ])
        ]).then((item) => {
          if (item[0].Data.length > 0) {
            var str = item[0].Data[0].TASK_RECIPIENTLIST
            var str2 = str.split(',')
            Promise.all([me.searchsendDataByuserId([{ I_USERID: str2[1] }])]).then((item1) => {
              me.items.push({
                text: '乡镇人民政府审核',
                WFNODEGUID: '{9766D96E-8B85-481F-B514-C0B21CF4DC3A}',
                WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                TEXT: '乡镇人民政府审核',
                WFNODENAME: '乡镇人民政府审核',
                dot: false,
                TNID: 1,
                PTNID: '-1',
                // 导航节点额外类名
                className: 'my-class',
                // 该导航下所有的可选项
                children: []
              })
              me.items[0].children.push({
                text: item1[0][0].USERNAME,
                id: nid,
                USERID: item1[0][0].USERID,
                USERNAME: item1[0][0].USERNAME,
                wfNodeGuid: '{9766D96E-8B85-481F-B514-C0B21CF4DC3A}',
                wfNodeName: '乡镇人民政府审核',
                TEXT: item1[0][0].USERNAME,
                PTNID: 1,
                TNID: nid,
                ISUSER: 1,
                SINGLEASSIGN: false,
                wfNodeType: 2
              })
            })
          } else {
            var I_ZJCITY = me.rowData.VILLAGE
            var nodeInfo = {}
            nodeInfo.USERID = I_ZJCITY //存储过程参数
            nodeInfo.TYPE = 8 //存储过程参数
            nodeInfo.WFNODEGUID = '{9766D96E-8B85-481F-B514-C0B21CF4DC3A}' //节点guid
            nodeInfo.WFNODENAME = '乡镇人民政府审核' //节点名称
            me.HouseNodeUser(nodeInfo)
          }
        })
      }
      if (data == '乡镇人民政府审核') {
        debugger
        let newUserTreeData = []
        let nid = 1
        me.items.push({
          text: '打印相关报表、盖章',
          WFNODEGUID: '{B8C0E603-AB3B-4FA6-BC92-21D4F393CC28}',
          WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
          TEXT: '打印相关报表、盖章',
          WFNODENAME: '打印相关报表、盖章',
          dot: false,
          TNID: 1,
          PTNID: '-1',
          // 导航节点额外类名
          className: 'my-class',
          // 该导航下所有的可选项
          children: []
        })
        newUserTreeData.push(me.items)
        Promise.all([
          me.SearchSendDataPuplic([
            {
              I_USERID: me.rowData.TOWN,
              I_TYPE: 30
            }
          ])
        ]).then((item) => {
          if (item[0] && item[0].length > 0) {
            item[0].forEach((data) => {
              nid = nid + 1
              me.items[0].children.push({
                text: data.ST_NAME,
                id: nid,
                USERID: data.ST_ID,
                USERNAME: data.ST_NAME,
                wfNodeGuid: '{B8C0E603-AB3B-4FA6-BC92-21D4F393CC28}',
                wfNodeName: '打印相关报表、盖章',
                TEXT: data.ST_NAME,
                PTNID: 1,
                TNID: nid,
                ISUSER: 1,
                SINGLEASSIGN: false,
                wfNodeType: 2
              })
              newUserTreeData.push(me.items)
            })

            Promise.all([
              me.SearchSendDataPuplic([
                {
                  I_USERID: me.rowData.TOWN,
                  I_TYPE: 8
                }
              ])
            ]).then((item1) => {
              if (item1[0] && item1[0].length > 0) {
                item1[0].forEach((data) => {
                  nid = nid + 1
                  me.items[0].children.push({
                    text: data.ST_NAME,
                    id: nid,
                    USERID: data.ST_ID,
                    USERNAME: data.ST_NAME,
                    wfNodeGuid: '{B8C0E603-AB3B-4FA6-BC92-21D4F393CC28}',
                    wfNodeName: '打印相关报表、盖章',
                    TEXT: data.ST_NAME,
                    PTNID: 1,
                    TNID: nid,
                    ISUSER: 1,
                    SINGLEASSIGN: false,
                    wfNodeType: 2
                  })
                  // if (newUserTreeData.find((item) => { return item.USERID == newItem1.USERID }) == undefined) {
                  //   newUserTreeData.push(newItem1);
                  // }
                })
              }
            })
          } else {
            Promise.all([
              me.SearchSendDataPuplic([
                {
                  I_USERID: me.rowData.TOWN,
                  I_TYPE: 8
                }
              ])
            ]).then((item2) => {
              if (item2[0] && item2[0].length > 0) {
                item2[0].forEach((data) => {
                  nid = nid + 1
                  me.items[0].children.push({
                    text: data.ST_NAME,
                    id: nid,
                    USERID: data.ST_ID,
                    USERNAME: data.ST_NAME,
                    wfNodeGuid: '{B8C0E603-AB3B-4FA6-BC92-21D4F393CC28}',
                    wfNodeName: '打印相关报表、盖章',
                    TEXT: data.ST_NAME,
                    PTNID: 1,
                    TNID: nid,
                    ISUSER: 1,
                    SINGLEASSIGN: false,
                    wfNodeType: 2
                  })
                })
              } else {
                me.$toast.fail('提交不成功，请联系镇街管理员核查 <打印相关报表、盖章> 是否已配置好案卷接受人员！')
              }
            })
          }
        })
      }
    },
    //获取竣工验收人员组合
    async getPersonYS(data) {
      let me = this
      let newResData = []
      let searchObject = []
      let dtParam = []
      let newRoles
      let newSingleData = JSON.parse(window.localStorage.getItem('singleData'))
      if (newSingleData && newSingleData.bizUserInfo) {
        newRoles = newSingleData.bizUserInfo.userInfo
      }

      if (data == '竣工验收镇街资格审核经办人') {
        debugger
        Promise.all([
          me.getJGYSData([
            {
              field: 'TO_ROW_GUID',
              value: me.rowData.ROW_GUID,
              operator: '='
            },
            {
              field: 'OPTYPE',
              value: 4,
              operator: '='
            },
            {
              field: 'NODE_GUID',
              value: '{22FD5C82-A491-420C-8F1B-5EBDDE0EC5FE}',
              operator: '='
            }
          ])
        ]).then((item) => {
          if (item[0].Data.length > 0) {
            //发送过测绘单位
            var I_ZJCITY = me.rowData.VILLAGE
            // //六个权限都有发给竣工验收镇街人民政府终审   //当前登陆人同时为 77: '镇街资格经办人', 79: '镇街规划经办人', 80: '镇街规划负责人', 78: '镇街资格负责人'
            if (
              newRoles &&
              !me.IsEmpty(newRoles.roles[77]) &&
              !me.IsEmpty(newRoles.roles[78]) &&
              !me.IsEmpty(newRoles.roles[79]) &&
              !me.IsEmpty(newRoles.roles[80]) &&
              !me.IsEmpty(newRoles.roles[81]) &&
              !me.IsEmpty(newRoles.roles[82])
            ) {
              Promise.all([
                me.searchPQGS([
                  {
                    field: 'PROC_GUID',
                    value: me.rowData.PROC_GUID
                  },
                  {
                    field: 'NODE_GUID',
                    value: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}'
                  },
                  {
                    field: 'TASK_STATUS',
                    value: '5,16',
                    link: 'AND',
                    operator: 'in'
                  }
                ])
              ]).then((item1) => {
                if (item1[0].Data.length > 0) {
                  var str = item1[0].Data[0].TASK_RECIPIENTLIST
                  var str2 = str.split(',')
                  Promise.all([me.searchsendDataByuserId([{ I_USERID: str2[1] }])]).then((item2) => {
                    me.items.push({
                      text: '竣工验收镇街人民政府终审',
                      WFNODENAME: '竣工验收镇街人民政府终审', //节点名称
                      WFNODEGUID: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}',
                      dot: false,
                      TNID: 1,
                      PTNID: '-1',
                      // 导航节点额外类名
                      className: 'my-class',
                      // 该导航下所有的可选项
                      children: []
                    })
                    me.items[0].children.push({
                      text: item2[0][0].USERNAME,
                      USERID: item2[0][0].USERID,
                      USERNAME: item2[0][0].USERNAME,
                      wfNodeGuid: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}',
                      wfNodeName: '竣工验收镇街人民政府终审',
                      TEXT: item2[0][0].USERNAME,
                      PTNID: 1,
                      TNID: 1,
                      ISUSER: 1,
                      SINGLEASSIGN: false,
                      wfNodeType: 5 ///2. 普通节点，5， 汇聚节点
                    })
                  })
                } else {
                  var I_ZJCITY = me.rowData.VILLAGE
                  var nodeInfo = {}
                  nodeInfo.USERID = I_ZJCITY //存储过程参数
                  nodeInfo.TYPE = 19 //存储过程参数
                  nodeInfo.WFNODEGUID = '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}' //节点guid
                  nodeInfo.WFNODENAME = '竣工验收镇街人民政府终审' //节点名称
                  me.HouseNodeUser(nodeInfo)
                }
              })
            }
            //三个经办人分别发给对应负责人
            else if (!me.IsEmpty(newRoles.roles[77]) && !me.IsEmpty(newRoles.roles[79]) && !me.IsEmpty(newRoles.roles[81])) {
              let nodes = []
              let types = []
              me.items.push({
                text: '竣工验收镇街资格审核负责人',
                WFNODEGUID: '{EB7D42FE-320C-4A0A-9C98-3E9373898826}',
                WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                TEXT: '竣工验收镇街资格审核负责人',
                WFNODENAME: '竣工验收镇街资格审核负责人',
                dot: false,
                TNID: 1,
                PTNID: '-1',
                // 导航节点额外类名
                className: 'my-class',
                // 该导航下所有的可选项
                children: []
              })
              nodes.push(me.items)
              types.push(5)
              searchObject = [
                {
                  field: 'PROC_GUID',
                  value: me.rowData.PROC_GUID
                },
                {
                  field: 'NODE_GUID',
                  value: '{38E4E7DB-963D-40F1-B1E1-FF8793AD23AD}'
                },
                {
                  field: 'TASK_STATUS',
                  value: '5',
                  link: 'AND',
                  operator: 'in'
                }
              ]
              Promise.all([me.searchPQGS(searchObject)]).then((item) => {
                if (item[0].Data.length < 1) {
                  me.items.push({
                    text: '竣工验收镇街农房审核负责人',
                    WFNODEGUID: '{0C243209-79FA-48BB-B027-4933B5FC31A2}',
                    WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                    TEXT: '竣工验收镇街农房审核负责人',
                    WFNODENAME: '竣工验收镇街农房审核负责人',
                    dot: false,
                    TNID: 1,
                    PTNID: '-1',
                    // 导航节点额外类名
                    className: 'my-class',
                    // 该导航下所有的可选项
                    children: []
                  })
                  nodes.push(me.items)
                  types.push(7)
                }

                Promise.all([
                  me.searchPQGS([
                    {
                      field: 'PROC_GUID',
                      value: me.rowData.PROC_GUID
                    },
                    {
                      field: 'NODE_GUID',
                      value: '{74864380-8590-4F8B-BD75-942E08F04D81}'
                    },
                    {
                      field: 'TASK_STATUS',
                      value: '5',
                      link: 'AND',
                      operator: 'in'
                    }
                  ])
                ]).then((item1) => {
                  if (item1[0].Data.length < 1) {
                    me.items.push({
                      text: '竣工验收镇街规划审核负责人',
                      WFNODEGUID: '{003E7696-65E6-432B-97A7-C95711D1D0E0}',
                      WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                      TEXT: '竣工验收镇街规划审核负责人',
                      WFNODENAME: '竣工验收镇街规划审核负责人',
                      dot: false,
                      TNID: 1,
                      PTNID: '-1',
                      // 导航节点额外类名
                      className: 'my-class',
                      // 该导航下所有的可选项
                      children: []
                    })
                    nodes.push(me.items)
                    types.push(6)
                  }
                  me.getRecipient(nodes, types, nodes.length, 1)
                })
              })
            }
            //同一条线上的经办人和负责人就发给对应流程连线的环节
            else if (!me.IsEmpty(newRoles.roles[77]) && !me.IsEmpty(newRoles.roles[78])) {
              Promise.all([
                me.searchPQGS([
                  {
                    field: 'PROC_GUID',
                    value: me.rowData.PROC_GUID
                  },
                  {
                    field: 'NODE_GUID',
                    value: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}'
                  },
                  {
                    field: 'TASK_STATUS',
                    value: '5,16',
                    link: 'AND',
                    operator: 'in'
                  }
                ])
              ]).then((item) => {
                if (item[0].Data.length > 0) {
                  var str = item[0].Data[0].TASK_RECIPIENTLIST.split(',')
                  Promise.all([me.searchsendDataByuserId([{ I_USERID: str[1] }])]).then((item1) => {
                    me.items.push({
                      text: '竣工验收镇街人民政府终审',
                      WFNODEGUID: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}',
                      dot: false,
                      TNID: 1,
                      PTNID: '-1',
                      // 导航节点额外类名
                      className: 'my-class',
                      // 该导航下所有的可选项
                      children: []
                    })
                    me.items[0].children.push({
                      text: item1[0][0].USERNAME,
                      USERID: item1[0][0].USERID,
                      USERNAME: item1[0][0].USERNAME,
                      wfNodeGuid: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}',
                      wfNodeName: '竣工验收镇街人民政府终审',
                      TEXT: item1[0][0].USERNAME,
                      PTNID: 1,
                      TNID: 1,
                      ISUSER: 1,
                      SINGLEASSIGN: false,
                      wfNodeType: 5 ///2. 普通节点，5， 汇聚节点
                    })
                  })
                } else {
                  debugger
                  var I_ZJCITY = me.rowData.VILLAGE
                  var nodeInfo = {}
                  nodeInfo.USERID = I_ZJCITY //存储过程参数
                  nodeInfo.TYPE = 19 //存储过程参数
                  nodeInfo.WFNODEGUID = '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}' //节点guid
                  nodeInfo.WFNODENAME = '竣工验收镇街人民政府终审' //节点名称
                  me.HouseNodeUser(nodeInfo)
                }
              })
            } else {
              debugger
              var I_ZJCITY = me.rowData.VILLAGE
              var nodeInfo = {}
              nodeInfo.USERID = I_ZJCITY //存储过程参数
              nodeInfo.TYPE = 14 //存储过程参数
              nodeInfo.WFNODEGUID = '{EB7D42FE-320C-4A0A-9C98-3E9373898826}' //节点guid
              nodeInfo.WFNODENAME = '竣工验收镇街资格审核负责人' //节点名称
              me.HouseNodeUser(nodeInfo)
            }
          } else {
            //没有发送过测绘单位
            Promise.all([
              me.getDataGuidByPublic('a79f625b-66e9-4d1b-9da6-5bd5566810ba', [
                {
                  field: 'TO_ROW_GUID',
                  value: me.rowData.ROW_GUID,
                  operator: '='
                },
                {
                  field: 'OPTYPE',
                  value: 4,
                  operator: '='
                }
              ])
            ]).then((item) => {
              if (item[0].Data.length > 0) {
                if (item[0].Data[0].SFXZCHDW == 5) {
                  var I_CHDWID = it.em[0].Data[0].CHDWID
                  if (me.IsEmpty(I_CHDWID)) {
                    me.$toast.fail('请选择测试单位!')
                  } else {
                    var str = I_CHDWID.substring(0, I_CHDWID.lastIndexOf(',')) //分隔最后一位逗号

                    var nodeInfo = {}
                    nodeInfo.USERID = str //存储过程参数
                    nodeInfo.TYPE = 29 //存储过程参数
                    nodeInfo.WFNODEGUID = '{22FD5C82-A491-420C-8F1B-5EBDDE0EC5FE}' //节点guid
                    nodeInfo.WFNODENAME = '企业单位审核' //节点名称
                    me.HouseNodeUser(nodeInfo)
                  }
                } else {
                  //六个权限都有发给竣工验收镇街人民政府终审
                  if (
                    newRoles &&
                    !me.IsEmpty(newRoles.roles[77]) &&
                    !me.IsEmpty(newRoles.roles[78]) &&
                    !me.IsEmpty(newRoles.roles[79]) &&
                    !me.IsEmpty(newRoles.roles[80]) &&
                    !me.IsEmpty(newRoles.roles[81]) &&
                    !me.IsEmpty(newRoles.roles[82])
                  ) {
                    Promise.all([
                      me.searchPQGS([
                        {
                          field: 'PROC_GUID',
                          value: me.rowData.PROC_GUID
                        },
                        {
                          field: 'NODE_GUID',
                          value: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}'
                        },
                        {
                          field: 'TASK_STATUS',
                          value: '5,16',
                          link: 'AND',
                          operator: 'in'
                        }
                      ])
                    ]).then((item1) => {
                      if (item1[0].Data.length > 0) {
                        var str = item1[0].Data[0].TASK_RECIPIENTLIST
                        var str2 = str.split(',')
                        Promise.all([me.searchsendDataByuserId([{ I_USERID: str2[1] }])]).then((item2) => {
                          me.items.push({
                            text: '竣工验收镇街人民政府终审',
                            WFNODENAME: '竣工验收镇街人民政府终审', //节点名称
                            WFNODEGUID: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}',
                            dot: false,
                            TNID: 1,
                            PTNID: '-1',
                            // 导航节点额外类名
                            className: 'my-class',
                            // 该导航下所有的可选项
                            children: []
                          })
                          me.items[0].children.push({
                            text: item2[0][0].USERNAME,
                            USERID: item2[0][0].USERID,
                            USERNAME: item2[0][0].USERNAME,
                            wfNodeGuid: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}',
                            wfNodeName: '竣工验收镇街人民政府终审',
                            TEXT: item2[0][0].USERNAME,
                            PTNID: 1,
                            TNID: 1,
                            ISUSER: 1,
                            SINGLEASSIGN: false,
                            wfNodeType: 5 ///2. 普通节点，5， 汇聚节点
                          })
                        })
                      } else {
                        var I_ZJCITY = me.rowData.VILLAGE
                        var nodeInfo = {}
                        nodeInfo.USERID = I_ZJCITY //存储过程参数
                        nodeInfo.TYPE = 19 //存储过程参数
                        nodeInfo.WFNODEGUID = '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}' //节点guid
                        nodeInfo.WFNODENAME = '竣工验收镇街人民政府终审' //节点名称
                        me.HouseNodeUser(nodeInfo)
                      }
                    })
                  }
                  //三个经办人分别发给对应负责人
                  else if (!me.IsEmpty(newRoles.roles[77]) && !me.IsEmpty(newRoles.roles[79]) && !me.IsEmpty(newRoles.roles[81])) {
                    let nodes = []
                    let types = []
                    me.items.push({
                      text: '竣工验收镇街资格审核负责人',
                      WFNODEGUID: '{EB7D42FE-320C-4A0A-9C98-3E9373898826}',
                      WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                      TEXT: '竣工验收镇街资格审核负责人',
                      WFNODENAME: '竣工验收镇街资格审核负责人',
                      dot: false,
                      TNID: 1,
                      PTNID: '-1',
                      // 导航节点额外类名
                      className: 'my-class',
                      // 该导航下所有的可选项
                      children: []
                    })
                    nodes.push(me.items)
                    types.push(5)
                    searchObject = [
                      {
                        field: 'PROC_GUID',
                        value: me.rowData.PROC_GUID
                      },
                      {
                        field: 'NODE_GUID',
                        value: '{38E4E7DB-963D-40F1-B1E1-FF8793AD23AD}'
                      },
                      {
                        field: 'TASK_STATUS',
                        value: '5',
                        link: 'AND',
                        operator: 'in'
                      }
                    ]
                    Promise.all([me.searchPQGS(searchObject)]).then((item) => {
                      if (item[0].Data.length < 1) {
                        me.items.push({
                          text: '竣工验收镇街农房审核负责人',
                          WFNODEGUID: '{0C243209-79FA-48BB-B027-4933B5FC31A2}',
                          WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                          TEXT: '竣工验收镇街农房审核负责人',
                          WFNODENAME: '竣工验收镇街农房审核负责人',
                          dot: false,
                          TNID: 1,
                          PTNID: '-1',
                          // 导航节点额外类名
                          className: 'my-class',
                          // 该导航下所有的可选项
                          children: []
                        })
                        nodes.push(me.items)
                        types.push(7)
                      }

                      Promise.all([
                        me.searchPQGS([
                          {
                            field: 'PROC_GUID',
                            value: me.rowData.PROC_GUID
                          },
                          {
                            field: 'NODE_GUID',
                            value: '{74864380-8590-4F8B-BD75-942E08F04D81}'
                          },
                          {
                            field: 'TASK_STATUS',
                            value: '5',
                            link: 'AND',
                            operator: 'in'
                          }
                        ])
                      ]).then((item1) => {
                        if (item1[0].Data.length < 1) {
                          me.items.push({
                            text: '竣工验收镇街规划审核负责人',
                            WFNODEGUID: '{003E7696-65E6-432B-97A7-C95711D1D0E0}',
                            WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                            TEXT: '竣工验收镇街规划审核负责人',
                            WFNODENAME: '竣工验收镇街规划审核负责人',
                            dot: false,
                            TNID: 1,
                            PTNID: '-1',
                            // 导航节点额外类名
                            className: 'my-class',
                            // 该导航下所有的可选项
                            children: []
                          })
                          nodes.push(me.items)
                          types.push(6)
                        }
                        me.getRecipient(nodes, types, nodes.length, 1)
                      })
                    })
                  }
                  //同一条线上的经办人和负责人就发给对应流程连线的环节
                  else if (!me.IsEmpty(newRoles.roles[77]) && !me.IsEmpty(newRoles.roles[78])) {
                    Promise.all([
                      me.searchPQGS([
                        {
                          field: 'PROC_GUID',
                          value: me.rowData.PROC_GUID
                        },
                        {
                          field: 'NODE_GUID',
                          value: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}'
                        },
                        {
                          field: 'TASK_STATUS',
                          value: '5,16',
                          link: 'AND',
                          operator: 'in'
                        }
                      ])
                    ]).then((item) => {
                      if (item[0].Data.length > 0) {
                        var str = item[0].Data[0].TASK_RECIPIENTLIST.split(',')
                        Promise.all([me.searchsendDataByuserId([{ I_USERID: str[1] }])]).then((item1) => {
                          me.items.push({
                            text: '竣工验收镇街人民政府终审',
                            WFNODEGUID: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}',
                            dot: false,
                            TNID: 1,
                            PTNID: '-1',
                            // 导航节点额外类名
                            className: 'my-class',
                            // 该导航下所有的可选项
                            children: []
                          })
                          me.items[0].children.push({
                            text: item1[0][0].USERNAME,
                            USERID: item1[0][0].USERID,
                            USERNAME: item1[0][0].USERNAME,
                            wfNodeGuid: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}',
                            wfNodeName: '竣工验收镇街人民政府终审',
                            TEXT: item1[0][0].USERNAME,
                            PTNID: 1,
                            TNID: 1,
                            ISUSER: 1,
                            SINGLEASSIGN: false,
                            wfNodeType: 5 ///2. 普通节点，5， 汇聚节点
                          })
                        })
                      } else {
                        debugger
                        var I_ZJCITY = me.rowData.VILLAGE
                        var nodeInfo = {}
                        nodeInfo.USERID = I_ZJCITY //存储过程参数
                        nodeInfo.TYPE = 19 //存储过程参数
                        nodeInfo.WFNODEGUID = '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}' //节点guid
                        nodeInfo.WFNODENAME = '竣工验收镇街人民政府终审' //节点名称
                        me.HouseNodeUser(nodeInfo)
                      }
                    })
                  } else {
                    debugger
                    var I_ZJCITY = me.rowData.VILLAGE
                    var nodeInfo = {}
                    nodeInfo.USERID = I_ZJCITY //存储过程参数
                    nodeInfo.TYPE = 14 //存储过程参数
                    nodeInfo.WFNODEGUID = '{EB7D42FE-320C-4A0A-9C98-3E9373898826}' //节点guid
                    nodeInfo.WFNODENAME = '竣工验收镇街资格审核负责人' //节点名称
                    me.HouseNodeUser(nodeInfo)
                  }
                }
              }
            })
          }
        })
      }
      if (data == '竣工验收镇街规划审核经办人') {
        debugger
        Promise.all([
          me.getJGYSData([
            {
              field: 'TO_ROW_GUID',
              value: me.rowData.ROW_GUID,
              operator: '='
            },
            {
              field: 'OPTYPE',
              value: 4,
              operator: '='
            },
            {
              field: 'NODE_GUID',
              value: '{22FD5C82-A491-420C-8F1B-5EBDDE0EC5FE}',
              operator: '='
            }
          ])
        ]).then((item) => {
          if (item[0].Data.length > 0) {
            //发送过测绘单位
            var I_ZJCITY = me.rowData.VILLAGE
            // //六个权限都有发给竣工验收镇街人民政府终审   //当前登陆人同时为 77: '镇街资格经办人', 79: '镇街规划经办人', 80: '镇街规划负责人', 78: '镇街资格负责人'
            if (
              newRoles &&
              !me.IsEmpty(newRoles.roles[77]) &&
              !me.IsEmpty(newRoles.roles[78]) &&
              !me.IsEmpty(newRoles.roles[79]) &&
              !me.IsEmpty(newRoles.roles[80]) &&
              !me.IsEmpty(newRoles.roles[81]) &&
              !me.IsEmpty(newRoles.roles[82])
            ) {
              Promise.all([
                me.searchPQGS([
                  {
                    field: 'PROC_GUID',
                    value: me.rowData.PROC_GUID
                  },
                  {
                    field: 'NODE_GUID',
                    value: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}'
                  },
                  {
                    field: 'TASK_STATUS',
                    value: '5,16',
                    link: 'AND',
                    operator: 'in'
                  }
                ])
              ]).then((item1) => {
                if (item1[0].Data.length > 0) {
                  var str = item1[0].Data[0].TASK_RECIPIENTLIST
                  var str2 = str.split(',')
                  Promise.all([me.searchsendDataByuserId([{ I_USERID: str2[1] }])]).then((item2) => {
                    me.items.push({
                      text: '竣工验收镇街人民政府终审',
                      WFNODENAME: '竣工验收镇街人民政府终审', //节点名称
                      WFNODEGUID: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}',
                      dot: false,
                      TNID: 1,
                      PTNID: '-1',
                      // 导航节点额外类名
                      className: 'my-class',
                      // 该导航下所有的可选项
                      children: []
                    })
                    me.items[0].children.push({
                      text: item2[0][0].USERNAME,
                      USERID: item2[0][0].USERID,
                      USERNAME: item2[0][0].USERNAME,
                      wfNodeGuid: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}',
                      wfNodeName: '竣工验收镇街人民政府终审',
                      TEXT: item2[0][0].USERNAME,
                      PTNID: 1,
                      TNID: 1,
                      ISUSER: 1,
                      SINGLEASSIGN: false,
                      wfNodeType: 5 ///2. 普通节点，5， 汇聚节点
                    })
                  })
                } else {
                  var I_ZJCITY = me.rowData.VILLAGE
                  var nodeInfo = {}
                  nodeInfo.USERID = I_ZJCITY //存储过程参数
                  nodeInfo.TYPE = 19 //存储过程参数
                  nodeInfo.WFNODEGUID = '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}' //节点guid
                  nodeInfo.WFNODENAME = '竣工验收镇街人民政府终审' //节点名称
                  me.HouseNodeUser(nodeInfo)
                }
              })
            }
            //三个经办人分别发给对应负责人
            else if (!me.IsEmpty(newRoles.roles[77]) && !me.IsEmpty(newRoles.roles[79]) && !me.IsEmpty(newRoles.roles[81])) {
              let nodes = []
              let types = []
              me.items.push({
                text: '竣工验收镇街规划审核负责人',
                WFNODEGUID: '{003E7696-65E6-432B-97A7-C95711D1D0E0}',
                WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                TEXT: '竣工验收镇街规划审核负责人',
                WFNODENAME: '竣工验收镇街规划审核负责人',
                dot: false,
                TNID: 1,
                PTNID: '-1',
                // 导航节点额外类名
                className: 'my-class',
                // 该导航下所有的可选项
                children: []
              })
              nodes.push(me.items)
              types.push(6)
              searchObject = [
                {
                  field: 'PROC_GUID',
                  value: me.rowData.PROC_GUID
                },
                {
                  field: 'NODE_GUID',
                  value: '{38E4E7DB-963D-40F1-B1E1-FF8793AD23AD}'
                },
                {
                  field: 'TASK_STATUS',
                  value: '5',
                  link: 'AND',
                  operator: 'in'
                }
              ]
              Promise.all([me.searchPQGS(searchObject)]).then((item) => {
                if (item[0].Data.length < 1) {
                  me.items.push({
                    text: '竣工验收镇街农房审核负责人',
                    WFNODEGUID: '{0C243209-79FA-48BB-B027-4933B5FC31A2}',
                    WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                    TEXT: '竣工验收镇街农房审核负责人',
                    WFNODENAME: '竣工验收镇街农房审核负责人',
                    dot: false,
                    TNID: 1,
                    PTNID: '-1',
                    // 导航节点额外类名
                    className: 'my-class',
                    // 该导航下所有的可选项
                    children: []
                  })
                  nodes.push(me.items)
                  types.push(7)
                }

                Promise.all([
                  me.searchPQGS([
                    {
                      field: 'PROC_GUID',
                      value: me.rowData.PROC_GUID
                    },
                    {
                      field: 'NODE_GUID',
                      value: '{74864380-8590-4F8B-BD75-942E08F04D81}'
                    },
                    {
                      field: 'TASK_STATUS',
                      value: '5',
                      link: 'AND',
                      operator: 'in'
                    }
                  ])
                ]).then((item1) => {
                  if (item1[0].Data.length < 1) {
                    me.items.push({
                      text: '竣工验收镇街资格审核负责人',
                      WFNODEGUID: '{EB7D42FE-320C-4A0A-9C98-3E9373898826}',
                      WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                      TEXT: '竣工验收镇街资格审核负责人',
                      WFNODENAME: '竣工验收镇街资格审核负责人',
                      dot: false,
                      TNID: 1,
                      PTNID: '-1',
                      // 导航节点额外类名
                      className: 'my-class',
                      // 该导航下所有的可选项
                      children: []
                    })
                    nodes.push(me.items)
                    types.push(5)
                  }
                  me.getRecipient(nodes, types, nodes.length, 1)
                })
              })
            }
            //同一条线上的经办人和负责人就发给对应流程连线的环节
            else if (!me.IsEmpty(newRoles.roles[79]) && !me.IsEmpty(newRoles.roles[80])) {
              Promise.all([
                me.searchPQGS([
                  {
                    field: 'PROC_GUID',
                    value: me.rowData.PROC_GUID
                  },
                  {
                    field: 'NODE_GUID',
                    value: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}'
                  },
                  {
                    field: 'TASK_STATUS',
                    value: '5,16',
                    link: 'AND',
                    operator: 'in'
                  }
                ])
              ]).then((item) => {
                if (item[0].Data.length > 0) {
                  var str = item[0].Data[0].TASK_RECIPIENTLIST.split(',')
                  Promise.all([me.searchsendDataByuserId([{ I_USERID: str[1] }])]).then((item1) => {
                    me.items.push({
                      text: '竣工验收镇街人民政府终审',
                      WFNODEGUID: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}',
                      dot: false,
                      TNID: 1,
                      PTNID: '-1',
                      // 导航节点额外类名
                      className: 'my-class',
                      // 该导航下所有的可选项
                      children: []
                    })
                    me.items[0].children.push({
                      text: item1[0][0].USERNAME,
                      USERID: item1[0][0].USERID,
                      USERNAME: item1[0][0].USERNAME,
                      wfNodeGuid: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}',
                      wfNodeName: '竣工验收镇街人民政府终审',
                      TEXT: item1[0][0].USERNAME,
                      PTNID: 1,
                      TNID: 1,
                      ISUSER: 1,
                      SINGLEASSIGN: false,
                      wfNodeType: 5 ///2. 普通节点，5， 汇聚节点
                    })
                  })
                } else {
                  debugger
                  var I_ZJCITY = me.rowData.VILLAGE
                  var nodeInfo = {}
                  nodeInfo.USERID = I_ZJCITY //存储过程参数
                  nodeInfo.TYPE = 19 //存储过程参数
                  nodeInfo.WFNODEGUID = '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}' //节点guid
                  nodeInfo.WFNODENAME = '竣工验收镇街人民政府终审' //节点名称
                  me.HouseNodeUser(nodeInfo)
                }
              })
            } else {
              debugger
              var I_ZJCITY = me.rowData.VILLAGE
              var nodeInfo = {}
              nodeInfo.USERID = I_ZJCITY //存储过程参数
              nodeInfo.TYPE = 16 //存储过程参数
              nodeInfo.WFNODEGUID = '003E7696-65E6-432B-97A7-C95711D1D0E0}' //节点guid
              nodeInfo.WFNODENAME = '竣工验收镇街规划审核负责人' //节点名称
              me.HouseNodeUser(nodeInfo)
            }
          } else {
            //没有发送过测绘单位
            Promise.all([
              me.getDataGuidByPublic('a79f625b-66e9-4d1b-9da6-5bd5566810ba', [
                {
                  field: 'TO_ROW_GUID',
                  value: me.rowData.ROW_GUID,
                  operator: '='
                },
                {
                  field: 'OPTYPE',
                  value: 4,
                  operator: '='
                }
              ])
            ]).then((item) => {
              if (item[0].Data.length > 0) {
                if (item[0].Data[0].SFXZCHDW == 5) {
                  var I_CHDWID = it.em[0].Data[0].CHDWID
                  if (me.IsEmpty(I_CHDWID)) {
                    me.$toast.fail('请选择测试单位!')
                  } else {
                    var str = I_CHDWID.substring(0, I_CHDWID.lastIndexOf(',')) //分隔最后一位逗号

                    var nodeInfo = {}
                    nodeInfo.USERID = str //存储过程参数
                    nodeInfo.TYPE = 29 //存储过程参数
                    nodeInfo.WFNODEGUID = '{22FD5C82-A491-420C-8F1B-5EBDDE0EC5FE}' //节点guid
                    nodeInfo.WFNODENAME = '企业单位审核' //节点名称
                    me.HouseNodeUser(nodeInfo)
                  }
                } else {
                  //六个权限都有发给竣工验收镇街人民政府终审
                  if (
                    newRoles &&
                    !me.IsEmpty(newRoles.roles[77]) &&
                    !me.IsEmpty(newRoles.roles[78]) &&
                    !me.IsEmpty(newRoles.roles[79]) &&
                    !me.IsEmpty(newRoles.roles[80]) &&
                    !me.IsEmpty(newRoles.roles[81]) &&
                    !me.IsEmpty(newRoles.roles[82])
                  ) {
                    Promise.all([
                      me.searchPQGS([
                        {
                          field: 'PROC_GUID',
                          value: me.rowData.PROC_GUID
                        },
                        {
                          field: 'NODE_GUID',
                          value: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}'
                        },
                        {
                          field: 'TASK_STATUS',
                          value: '5,16',
                          link: 'AND',
                          operator: 'in'
                        }
                      ])
                    ]).then((item1) => {
                      if (item1[0].Data.length > 0) {
                        var str = item1[0].Data[0].TASK_RECIPIENTLIST
                        var str2 = str.split(',')
                        Promise.all([me.searchsendDataByuserId([{ I_USERID: str2[1] }])]).then((item2) => {
                          me.items.push({
                            text: '竣工验收镇街人民政府终审',
                            WFNODENAME: '竣工验收镇街人民政府终审', //节点名称
                            WFNODEGUID: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}',
                            dot: false,
                            TNID: 1,
                            PTNID: '-1',
                            // 导航节点额外类名
                            className: 'my-class',
                            // 该导航下所有的可选项
                            children: []
                          })
                          me.items[0].children.push({
                            text: item2[0][0].USERNAME,
                            USERID: item2[0][0].USERID,
                            USERNAME: item2[0][0].USERNAME,
                            wfNodeGuid: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}',
                            wfNodeName: '竣工验收镇街人民政府终审',
                            TEXT: item2[0][0].USERNAME,
                            PTNID: 1,
                            TNID: 1,
                            ISUSER: 1,
                            SINGLEASSIGN: false,
                            wfNodeType: 5 ///2. 普通节点，5， 汇聚节点
                          })
                        })
                      } else {
                        var I_ZJCITY = me.rowData.VILLAGE
                        var nodeInfo = {}
                        nodeInfo.USERID = I_ZJCITY //存储过程参数
                        nodeInfo.TYPE = 19 //存储过程参数
                        nodeInfo.WFNODEGUID = '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}' //节点guid
                        nodeInfo.WFNODENAME = '竣工验收镇街人民政府终审' //节点名称
                        me.HouseNodeUser(nodeInfo)
                      }
                    })
                  }
                  //三个经办人分别发给对应负责人
                  else if (!me.IsEmpty(newRoles.roles[77]) && !me.IsEmpty(newRoles.roles[79]) && !me.IsEmpty(newRoles.roles[81])) {
                    let nodes = []
                    let types = []
                    me.items.push({
                      text: '竣工验收镇街规划审核负责人',
                      WFNODEGUID: '{003E7696-65E6-432B-97A7-C95711D1D0E0}',
                      WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                      TEXT: '竣工验收镇街规划审核负责人',
                      WFNODENAME: '竣工验收镇街规划审核负责人',
                      dot: false,
                      TNID: 1,
                      PTNID: '-1',
                      // 导航节点额外类名
                      className: 'my-class',
                      // 该导航下所有的可选项
                      children: []
                    })
                    nodes.push(me.items)
                    types.push(6)
                    searchObject = [
                      {
                        field: 'PROC_GUID',
                        value: me.rowData.PROC_GUID
                      },
                      {
                        field: 'NODE_GUID',
                        value: '{38E4E7DB-963D-40F1-B1E1-FF8793AD23AD}'
                      },
                      {
                        field: 'TASK_STATUS',
                        value: '5',
                        link: 'AND',
                        operator: 'in'
                      }
                    ]
                    Promise.all([me.searchPQGS(searchObject)]).then((item) => {
                      if (item[0].Data.length < 1) {
                        me.items.push({
                          text: '竣工验收镇街农房审核负责人',
                          WFNODEGUID: '{0C243209-79FA-48BB-B027-4933B5FC31A2}',
                          WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                          TEXT: '竣工验收镇街农房审核负责人',
                          WFNODENAME: '竣工验收镇街农房审核负责人',
                          dot: false,
                          TNID: 1,
                          PTNID: '-1',
                          // 导航节点额外类名
                          className: 'my-class',
                          // 该导航下所有的可选项
                          children: []
                        })
                        nodes.push(me.items)
                        types.push(7)
                      }

                      Promise.all([
                        me.searchPQGS([
                          {
                            field: 'PROC_GUID',
                            value: me.rowData.PROC_GUID
                          },
                          {
                            field: 'NODE_GUID',
                            value: '{74864380-8590-4F8B-BD75-942E08F04D81}'
                          },
                          {
                            field: 'TASK_STATUS',
                            value: '5',
                            link: 'AND',
                            operator: 'in'
                          }
                        ])
                      ]).then((item1) => {
                        if (item1[0].Data.length < 1) {
                          me.items.push({
                            text: '竣工验收镇街资格审核负责人',
                            WFNODEGUID: '{EB7D42FE-320C-4A0A-9C98-3E9373898826}',
                            WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                            TEXT: '竣工验收镇街资格审核负责人',
                            WFNODENAME: '竣工验收镇街资格审核负责人',
                            dot: false,
                            TNID: 1,
                            PTNID: '-1',
                            // 导航节点额外类名
                            className: 'my-class',
                            // 该导航下所有的可选项
                            children: []
                          })
                          nodes.push(me.items)
                          types.push(5)
                        }
                        me.getRecipient(nodes, types, nodes.length, 1)
                      })
                    })
                  }
                  //同一条线上的经办人和负责人就发给对应流程连线的环节
                  else if (!me.IsEmpty(newRoles.roles[79]) && !me.IsEmpty(newRoles.roles[80])) {
                    Promise.all([
                      me.searchPQGS([
                        {
                          field: 'PROC_GUID',
                          value: me.rowData.PROC_GUID
                        },
                        {
                          field: 'NODE_GUID',
                          value: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}'
                        },
                        {
                          field: 'TASK_STATUS',
                          value: '5,16',
                          link: 'AND',
                          operator: 'in'
                        }
                      ])
                    ]).then((item) => {
                      if (item[0].Data.length > 0) {
                        var str = item[0].Data[0].TASK_RECIPIENTLIST.split(',')
                        Promise.all([me.searchsendDataByuserId([{ I_USERID: str[1] }])]).then((item1) => {
                          me.items.push({
                            text: '竣工验收镇街人民政府终审',
                            WFNODEGUID: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}',
                            dot: false,
                            TNID: 1,
                            PTNID: '-1',
                            // 导航节点额外类名
                            className: 'my-class',
                            // 该导航下所有的可选项
                            children: []
                          })
                          me.items[0].children.push({
                            text: item1[0][0].USERNAME,
                            USERID: item1[0][0].USERID,
                            USERNAME: item1[0][0].USERNAME,
                            wfNodeGuid: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}',
                            wfNodeName: '竣工验收镇街人民政府终审',
                            TEXT: item1[0][0].USERNAME,
                            PTNID: 1,
                            TNID: 1,
                            ISUSER: 1,
                            SINGLEASSIGN: false,
                            wfNodeType: 5 ///2. 普通节点，5， 汇聚节点
                          })
                        })
                      } else {
                        debugger
                        var I_ZJCITY = me.rowData.VILLAGE
                        var nodeInfo = {}
                        nodeInfo.USERID = I_ZJCITY //存储过程参数
                        nodeInfo.TYPE = 19 //存储过程参数
                        nodeInfo.WFNODEGUID = '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}' //节点guid
                        nodeInfo.WFNODENAME = '竣工验收镇街人民政府终审' //节点名称
                        me.HouseNodeUser(nodeInfo)
                      }
                    })
                  } else {
                    debugger
                    var I_ZJCITY = me.rowData.VILLAGE
                    var nodeInfo = {}
                    nodeInfo.USERID = I_ZJCITY //存储过程参数
                    nodeInfo.TYPE = 16 //存储过程参数
                    nodeInfo.WFNODEGUID = '{003E7696-65E6-432B-97A7-C95711D1D0E0}' //节点guid
                    nodeInfo.WFNODENAME = '竣工验收镇街规划审核负责人' //节点名称
                    me.HouseNodeUser(nodeInfo)
                  }
                }
              }
            })
          }
        })
      }
      if (data == '竣工验收镇街农房审核经办人') {
        debugger
        Promise.all([
          me.getJGYSData([
            {
              field: 'TO_ROW_GUID',
              value: me.rowData.ROW_GUID,
              operator: '='
            },
            {
              field: 'OPTYPE',
              value: 4,
              operator: '='
            },
            {
              field: 'NODE_GUID',
              value: '{22FD5C82-A491-420C-8F1B-5EBDDE0EC5FE}',
              operator: '='
            }
          ])
        ]).then((item) => {
          if (item[0].Data.length > 0) {
            //发送过测绘单位
            var I_ZJCITY = me.rowData.VILLAGE
            // //六个权限都有发给竣工验收镇街人民政府终审   //当前登陆人同时为 77: '镇街资格经办人', 79: '镇街规划经办人', 80: '镇街规划负责人', 78: '镇街资格负责人'
            if (
              newRoles &&
              !me.IsEmpty(newRoles.roles[77]) &&
              !me.IsEmpty(newRoles.roles[78]) &&
              !me.IsEmpty(newRoles.roles[79]) &&
              !me.IsEmpty(newRoles.roles[80]) &&
              !me.IsEmpty(newRoles.roles[81]) &&
              !me.IsEmpty(newRoles.roles[82])
            ) {
              Promise.all([
                me.searchPQGS([
                  {
                    field: 'PROC_GUID',
                    value: me.rowData.PROC_GUID
                  },
                  {
                    field: 'NODE_GUID',
                    value: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}'
                  },
                  {
                    field: 'TASK_STATUS',
                    value: '5,16',
                    link: 'AND',
                    operator: 'in'
                  }
                ])
              ]).then((item1) => {
                if (item1[0].Data.length > 0) {
                  var str = item1[0].Data[0].TASK_RECIPIENTLIST
                  var str2 = str.split(',')
                  Promise.all([me.searchsendDataByuserId([{ I_USERID: str2[1] }])]).then((item2) => {
                    me.items.push({
                      text: '竣工验收镇街人民政府终审',
                      WFNODENAME: '竣工验收镇街人民政府终审', //节点名称
                      WFNODEGUID: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}',
                      dot: false,
                      TNID: 1,
                      PTNID: '-1',
                      // 导航节点额外类名
                      className: 'my-class',
                      // 该导航下所有的可选项
                      children: []
                    })
                    me.items[0].children.push({
                      text: item2[0][0].USERNAME,
                      USERID: item2[0][0].USERID,
                      USERNAME: item2[0][0].USERNAME,
                      wfNodeGuid: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}',
                      wfNodeName: '竣工验收镇街人民政府终审',
                      TEXT: item2[0][0].USERNAME,
                      PTNID: 1,
                      TNID: 1,
                      ISUSER: 1,
                      SINGLEASSIGN: false,
                      wfNodeType: 5 ///2. 普通节点，5， 汇聚节点
                    })
                  })
                } else {
                  var I_ZJCITY = me.rowData.VILLAGE
                  var nodeInfo = {}
                  nodeInfo.USERID = I_ZJCITY //存储过程参数
                  nodeInfo.TYPE = 19 //存储过程参数
                  nodeInfo.WFNODEGUID = '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}' //节点guid
                  nodeInfo.WFNODENAME = '竣工验收镇街人民政府终审' //节点名称
                  me.HouseNodeUser(nodeInfo)
                }
              })
            }
            //三个经办人分别发给对应负责人
            else if (!me.IsEmpty(newRoles.roles[77]) && !me.IsEmpty(newRoles.roles[79]) && !me.IsEmpty(newRoles.roles[81])) {
              let nodes = []
              let types = []
              me.items.push({
                text: '竣工验收镇街规划审核负责人',
                WFNODEGUID: '{003E7696-65E6-432B-97A7-C95711D1D0E0}',
                WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                TEXT: '竣工验收镇街规划审核负责人',
                WFNODENAME: '竣工验收镇街规划审核负责人',
                dot: false,
                TNID: 1,
                PTNID: '-1',
                // 导航节点额外类名
                className: 'my-class',
                // 该导航下所有的可选项
                children: []
              })
              nodes.push(me.items)
              types.push(6)
              searchObject = [
                {
                  field: 'PROC_GUID',
                  value: me.rowData.PROC_GUID
                },
                {
                  field: 'NODE_GUID',
                  value: '{38E4E7DB-963D-40F1-B1E1-FF8793AD23AD}'
                },
                {
                  field: 'TASK_STATUS',
                  value: '5',
                  link: 'AND',
                  operator: 'in'
                }
              ]
              Promise.all([me.searchPQGS(searchObject)]).then((item) => {
                if (item[0].Data.length < 1) {
                  me.items.push({
                    text: '竣工验收镇街农房审核负责人',
                    WFNODEGUID: '{0C243209-79FA-48BB-B027-4933B5FC31A2}',
                    WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                    TEXT: '竣工验收镇街农房审核负责人',
                    WFNODENAME: '竣工验收镇街农房审核负责人',
                    dot: false,
                    TNID: 1,
                    PTNID: '-1',
                    // 导航节点额外类名
                    className: 'my-class',
                    // 该导航下所有的可选项
                    children: []
                  })
                  nodes.push(me.items)
                  types.push(7)
                }

                Promise.all([
                  me.searchPQGS([
                    {
                      field: 'PROC_GUID',
                      value: me.rowData.PROC_GUID
                    },
                    {
                      field: 'NODE_GUID',
                      value: '{74864380-8590-4F8B-BD75-942E08F04D81}'
                    },
                    {
                      field: 'TASK_STATUS',
                      value: '5',
                      link: 'AND',
                      operator: 'in'
                    }
                  ])
                ]).then((item1) => {
                  if (item1[0].Data.length < 1) {
                    me.items.push({
                      text: '竣工验收镇街资格审核负责人',
                      WFNODEGUID: '{EB7D42FE-320C-4A0A-9C98-3E9373898826}',
                      WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                      TEXT: '竣工验收镇街资格审核负责人',
                      WFNODENAME: '竣工验收镇街资格审核负责人',
                      dot: false,
                      TNID: 1,
                      PTNID: '-1',
                      // 导航节点额外类名
                      className: 'my-class',
                      // 该导航下所有的可选项
                      children: []
                    })
                    nodes.push(me.items)
                    types.push(5)
                  }
                  me.getRecipient(nodes, types, nodes.length, 1)
                })
              })
            }
            //同一条线上的经办人和负责人就发给对应流程连线的环节
            else if (!me.IsEmpty(newRoles.roles[81]) && !me.IsEmpty(newRoles.roles[82])) {
              Promise.all([
                me.searchPQGS([
                  {
                    field: 'PROC_GUID',
                    value: me.rowData.PROC_GUID
                  },
                  {
                    field: 'NODE_GUID',
                    value: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}'
                  },
                  {
                    field: 'TASK_STATUS',
                    value: '5,16',
                    link: 'AND',
                    operator: 'in'
                  }
                ])
              ]).then((item) => {
                if (item[0].Data.length > 0) {
                  var str = item[0].Data[0].TASK_RECIPIENTLIST.split(',')
                  Promise.all([me.searchsendDataByuserId([{ I_USERID: str[1] }])]).then((item1) => {
                    me.items.push({
                      text: '竣工验收镇街人民政府终审',
                      WFNODEGUID: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}',
                      dot: false,
                      TNID: 1,
                      PTNID: '-1',
                      // 导航节点额外类名
                      className: 'my-class',
                      // 该导航下所有的可选项
                      children: []
                    })
                    me.items[0].children.push({
                      text: item1[0][0].USERNAME,
                      USERID: item1[0][0].USERID,
                      USERNAME: item1[0][0].USERNAME,
                      wfNodeGuid: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}',
                      wfNodeName: '竣工验收镇街人民政府终审',
                      TEXT: item1[0][0].USERNAME,
                      PTNID: 1,
                      TNID: 1,
                      ISUSER: 1,
                      SINGLEASSIGN: false,
                      wfNodeType: 5 ///2. 普通节点，5， 汇聚节点
                    })
                  })
                } else {
                  debugger
                  var I_ZJCITY = me.rowData.VILLAGE
                  var nodeInfo = {}
                  nodeInfo.USERID = I_ZJCITY //存储过程参数
                  nodeInfo.TYPE = 19 //存储过程参数
                  nodeInfo.WFNODEGUID = '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}' //节点guid
                  nodeInfo.WFNODENAME = '竣工验收镇街人民政府终审' //节点名称
                  me.HouseNodeUser(nodeInfo)
                }
              })
            } else {
              debugger
              var I_ZJCITY = me.rowData.VILLAGE
              var nodeInfo = {}
              nodeInfo.USERID = I_ZJCITY //存储过程参数
              nodeInfo.TYPE = 16 //存储过程参数
              nodeInfo.WFNODEGUID = '003E7696-65E6-432B-97A7-C95711D1D0E0}' //节点guid
              nodeInfo.WFNODENAME = '竣工验收镇街规划审核负责人' //节点名称
              me.HouseNodeUser(nodeInfo)
            }
          } else {
            //没有发送过测绘单位
            Promise.all([
              me.getDataGuidByPublic('a79f625b-66e9-4d1b-9da6-5bd5566810ba', [
                {
                  field: 'TO_ROW_GUID',
                  value: me.rowData.ROW_GUID,
                  operator: '='
                },
                {
                  field: 'OPTYPE',
                  value: 4,
                  operator: '='
                }
              ])
            ]).then((item) => {
              if (item[0].Data.length > 0) {
                if (item[0].Data[0].SFXZCHDW == 5) {
                  var I_CHDWID = it.em[0].Data[0].CHDWID
                  if (me.IsEmpty(I_CHDWID)) {
                    me.$toast.fail('请选择测试单位!')
                  } else {
                    var str = I_CHDWID.substring(0, I_CHDWID.lastIndexOf(',')) //分隔最后一位逗号

                    var nodeInfo = {}
                    nodeInfo.USERID = str //存储过程参数
                    nodeInfo.TYPE = 29 //存储过程参数
                    nodeInfo.WFNODEGUID = '{22FD5C82-A491-420C-8F1B-5EBDDE0EC5FE}' //节点guid
                    nodeInfo.WFNODENAME = '企业单位审核' //节点名称
                    me.HouseNodeUser(nodeInfo)
                  }
                } else {
                  //六个权限都有发给竣工验收镇街人民政府终审
                  if (
                    newRoles &&
                    !me.IsEmpty(newRoles.roles[77]) &&
                    !me.IsEmpty(newRoles.roles[78]) &&
                    !me.IsEmpty(newRoles.roles[79]) &&
                    !me.IsEmpty(newRoles.roles[80]) &&
                    !me.IsEmpty(newRoles.roles[81]) &&
                    !me.IsEmpty(newRoles.roles[82])
                  ) {
                    Promise.all([
                      me.searchPQGS([
                        {
                          field: 'PROC_GUID',
                          value: me.rowData.PROC_GUID
                        },
                        {
                          field: 'NODE_GUID',
                          value: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}'
                        },
                        {
                          field: 'TASK_STATUS',
                          value: '5,16',
                          link: 'AND',
                          operator: 'in'
                        }
                      ])
                    ]).then((item1) => {
                      if (item1[0].Data.length > 0) {
                        var str = item1[0].Data[0].TASK_RECIPIENTLIST
                        var str2 = str.split(',')
                        Promise.all([me.searchsendDataByuserId([{ I_USERID: str2[1] }])]).then((item2) => {
                          me.items.push({
                            text: '竣工验收镇街人民政府终审',
                            WFNODENAME: '竣工验收镇街人民政府终审', //节点名称
                            WFNODEGUID: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}',
                            dot: false,
                            TNID: 1,
                            PTNID: '-1',
                            // 导航节点额外类名
                            className: 'my-class',
                            // 该导航下所有的可选项
                            children: []
                          })
                          me.items[0].children.push({
                            text: item2[0][0].USERNAME,
                            USERID: item2[0][0].USERID,
                            USERNAME: item2[0][0].USERNAME,
                            wfNodeGuid: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}',
                            wfNodeName: '竣工验收镇街人民政府终审',
                            TEXT: item2[0][0].USERNAME,
                            PTNID: 1,
                            TNID: 1,
                            ISUSER: 1,
                            SINGLEASSIGN: false,
                            wfNodeType: 5 ///2. 普通节点，5， 汇聚节点
                          })
                        })
                      } else {
                        var I_ZJCITY = me.rowData.VILLAGE
                        var nodeInfo = {}
                        nodeInfo.USERID = I_ZJCITY //存储过程参数
                        nodeInfo.TYPE = 19 //存储过程参数
                        nodeInfo.WFNODEGUID = '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}' //节点guid
                        nodeInfo.WFNODENAME = '竣工验收镇街人民政府终审' //节点名称
                        me.HouseNodeUser(nodeInfo)
                      }
                    })
                  }
                  //三个经办人分别发给对应负责人
                  else if (!me.IsEmpty(newRoles.roles[77]) && !me.IsEmpty(newRoles.roles[79]) && !me.IsEmpty(newRoles.roles[81])) {
                    let nodes = []
                    let types = []
                    me.items.push({
                      text: '竣工验收镇街规划审核负责人',
                      WFNODEGUID: '{003E7696-65E6-432B-97A7-C95711D1D0E0}',
                      WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                      TEXT: '竣工验收镇街规划审核负责人',
                      WFNODENAME: '竣工验收镇街规划审核负责人',
                      dot: false,
                      TNID: 1,
                      PTNID: '-1',
                      // 导航节点额外类名
                      className: 'my-class',
                      // 该导航下所有的可选项
                      children: []
                    })
                    nodes.push(me.items)
                    types.push(6)
                    searchObject = [
                      {
                        field: 'PROC_GUID',
                        value: me.rowData.PROC_GUID
                      },
                      {
                        field: 'NODE_GUID',
                        value: '{38E4E7DB-963D-40F1-B1E1-FF8793AD23AD}'
                      },
                      {
                        field: 'TASK_STATUS',
                        value: '5',
                        link: 'AND',
                        operator: 'in'
                      }
                    ]
                    Promise.all([me.searchPQGS(searchObject)]).then((item) => {
                      if (item[0].Data.length < 1) {
                        me.items.push({
                          text: '竣工验收镇街农房审核负责人',
                          WFNODEGUID: '{0C243209-79FA-48BB-B027-4933B5FC31A2}',
                          WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                          TEXT: '竣工验收镇街农房审核负责人',
                          WFNODENAME: '竣工验收镇街农房审核负责人',
                          dot: false,
                          TNID: 1,
                          PTNID: '-1',
                          // 导航节点额外类名
                          className: 'my-class',
                          // 该导航下所有的可选项
                          children: []
                        })
                        nodes.push(me.items)
                        types.push(7)
                      }

                      Promise.all([
                        me.searchPQGS([
                          {
                            field: 'PROC_GUID',
                            value: me.rowData.PROC_GUID
                          },
                          {
                            field: 'NODE_GUID',
                            value: '{74864380-8590-4F8B-BD75-942E08F04D81}'
                          },
                          {
                            field: 'TASK_STATUS',
                            value: '5',
                            link: 'AND',
                            operator: 'in'
                          }
                        ])
                      ]).then((item1) => {
                        if (item1[0].Data.length < 1) {
                          me.items.push({
                            text: '竣工验收镇街资格审核负责人',
                            WFNODEGUID: '{EB7D42FE-320C-4A0A-9C98-3E9373898826}',
                            WFNODETYPE: 2, //2. 普通节点，5， 汇聚节点
                            TEXT: '竣工验收镇街资格审核负责人',
                            WFNODENAME: '竣工验收镇街资格审核负责人',
                            dot: false,
                            TNID: 1,
                            PTNID: '-1',
                            // 导航节点额外类名
                            className: 'my-class',
                            // 该导航下所有的可选项
                            children: []
                          })
                          nodes.push(me.items)
                          types.push(5)
                        }
                        me.getRecipient(nodes, types, nodes.length, 1)
                      })
                    })
                  }
                  //同一条线上的经办人和负责人就发给对应流程连线的环节
                  else if (!me.IsEmpty(newRoles.roles[81]) && !me.IsEmpty(newRoles.roles[82])) {
                    Promise.all([
                      me.searchPQGS([
                        {
                          field: 'PROC_GUID',
                          value: me.rowData.PROC_GUID
                        },
                        {
                          field: 'NODE_GUID',
                          value: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}'
                        },
                        {
                          field: 'TASK_STATUS',
                          value: '5,16',
                          link: 'AND',
                          operator: 'in'
                        }
                      ])
                    ]).then((item) => {
                      if (item[0].Data.length > 0) {
                        var str = item[0].Data[0].TASK_RECIPIENTLIST.split(',')
                        Promise.all([me.searchsendDataByuserId([{ I_USERID: str[1] }])]).then((item1) => {
                          me.items.push({
                            text: '竣工验收镇街人民政府终审',
                            WFNODEGUID: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}',
                            dot: false,
                            TNID: 1,
                            PTNID: '-1',
                            // 导航节点额外类名
                            className: 'my-class',
                            // 该导航下所有的可选项
                            children: []
                          })
                          me.items[0].children.push({
                            text: item1[0][0].USERNAME,
                            USERID: item1[0][0].USERID,
                            USERNAME: item1[0][0].USERNAME,
                            wfNodeGuid: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}',
                            wfNodeName: '竣工验收镇街人民政府终审',
                            TEXT: item1[0][0].USERNAME,
                            PTNID: 1,
                            TNID: 1,
                            ISUSER: 1,
                            SINGLEASSIGN: false,
                            wfNodeType: 5 ///2. 普通节点，5， 汇聚节点
                          })
                        })
                      } else {
                        debugger
                        var I_ZJCITY = me.rowData.VILLAGE
                        var nodeInfo = {}
                        nodeInfo.USERID = I_ZJCITY //存储过程参数
                        nodeInfo.TYPE = 19 //存储过程参数
                        nodeInfo.WFNODEGUID = '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}' //节点guid
                        nodeInfo.WFNODENAME = '竣工验收镇街人民政府终审' //节点名称
                        me.HouseNodeUser(nodeInfo)
                      }
                    })
                  } else {
                    debugger
                    var I_ZJCITY = me.rowData.VILLAGE
                    var nodeInfo = {}
                    nodeInfo.USERID = I_ZJCITY //存储过程参数
                    nodeInfo.TYPE = 16 //存储过程参数
                    nodeInfo.WFNODEGUID = '{003E7696-65E6-432B-97A7-C95711D1D0E0}' //节点guid
                    nodeInfo.WFNODENAME = '竣工验收镇街规划审核负责人' //节点名称
                    me.HouseNodeUser(nodeInfo)
                  }
                }
              }
            })
          }
        })
      }
      if (data == '竣工验收镇街资格审核负责人' || data == '竣工验收镇街规划审核负责人' || data == '竣工验收镇街农房审核负责人') {
        Promise.all([
          me.searchPQGS([
            {
              field: 'PROC_GUID',
              value: me.rowData.PROC_GUID
            },
            {
              field: 'NODE_GUID',
              value: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}'
            }
          ])
        ]).then((item) => {
          if (item[0].Data.length > 0) {
            var str = item[0].Data[0].TASK_RECIPIENTLIST
            var str2 = str.split(',')
            Promise.all([
              me.searchsendDataByuserId([
                {
                  I_USERID: str2[1]
                }
              ])
            ]).then((item1) => {
              me.items.push({
                text: '竣工验收镇街人民政府终审',
                WFNODENAME: '竣工验收镇街人民政府终审', //节点名称
                WFNODEGUID: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}',
                dot: false,
                TNID: 1,
                PTNID: '-1',
                // 导航节点额外类名
                className: 'my-class',
                // 该导航下所有的可选项
                children: []
              })
              me.items[0].children.push({
                text: item1[0][0].USERNAME,
                USERID: item1[0][0].USERID,
                USERNAME: item1[0][0].USERNAME,
                wfNodeGuid: '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}',
                wfNodeName: '竣工验收镇街人民政府终审',
                TEXT: item1[0][0].USERNAME,
                PTNID: 1,
                TNID: 1,
                ISUSER: 1,
                SINGLEASSIGN: false,
                wfNodeType: 5 ///2. 普通节点，5， 汇聚节点
              })
            })
          } else {
            var I_ZJCITY = me.rowData.VILLAGE
            var nodeInfo = {}
            nodeInfo.USERID = I_ZJCITY //存储过程参数
            nodeInfo.TYPE = 19 //存储过程参数
            nodeInfo.WFNODEGUID = '{41EE42C1-2F52-45C5-A05C-D2D3160DCE23}' //节点guid
            nodeInfo.WFNODENAME = '竣工验收镇街人民政府终审' //节点名称
            me.HouseNodeUser(nodeInfo)
          }
        })
      }
      if (data == '竣工验收镇街人民政府终审') {
        var I_ZJCITY = me.rowData.COUNTY
        var nodeInfo = {}
        nodeInfo.USERID = I_ZJCITY //存储过程参数
        nodeInfo.TYPE = 26 //存储过程参数
        nodeInfo.WFNODEGUID = '{C1C592F3-63AE-4206-8382-A7D695ED2DF6}' //节点guid
        nodeInfo.WFNODENAME = '住房和城乡建设主管部门备案' //节点名称
        me.HouseNodeUser(nodeInfo)
      }
    },
    //选择右边的人员
    handlerselect(data) {
      if (this.personData.length > 0) {
        let status = false
        this.activeIds.forEach((item) => {
          if (item != data.id) {
            status = true
          }
        })
        if (status) {
          this.personData.push(data)
        }
        let datas = []
        this.activeIds.forEach((item) => {
          this.personData.forEach((items) => {
            if (item == items.id) {
              datas.push(items)
            }
          })
        })
        this.personData = datas
      } else {
        this.personData.push(data)
      }
      console.log(this.personData)
    }
  }
}
</script>

<style>
.sendTree {
  width: 100%;
  height: 100vh;
  overflow: auto;

  .content {
    padding: 10px 10px;
    position: relative;
  }
}
</style>
